This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// include no topo | |
#include <Trade\PositionInfo.mqh> | |
// declaracao no topo | |
CPositionInfo Position; | |
// OnInit ou OnTick | |
Position.SelectByIndex(0); | |
double Distancia = Position.PriceOpen() - Position.PriceCurrent(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var token = 'xxxx'; | |
var headers = { | |
Authorization: token, | |
Accept: 'application/json', | |
'Content-Type': 'application/json', | |
}; | |
var jsonEnvio = { | |
"smss":[ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$config = [ | |
'apiv2' => 'http://v2.bestuse.com.br/api/v1/' | |
]; | |
function makeRequest($url, $jsonData, $method) { | |
//Initiate cURL. | |
$ch = curl_init($url); |