help ! i want to complete this ea

adnane

Active Trader
Mar 25, 2018
2
0
31
43
hi
i have this ea
i want make this info ( on picture ) on this espert advisor and i want open order buy sell whith the lot on the first candle
-----------------------------------------------------------------------
void OnTick()
{
// Create a string variable for the signal
string signal="";

// We calculate the SAR Indicator
double MySARValue = iSAR(_Symbol,_Period,0.02,0.2,0);

// If the SAR Indicator is below the bid price
if (MySARValue<Bid)
{

// create buy signal
signal = "buy" ;
}

// If the SAR Indicator is above the bid price
if (MySARValue>Ask)
{

// create sell signal
signal = "sell" ;
}

// Create chart output
Comment ("MySARValue: ",MySARValue, "\n","Signal: ",signal);
}
--------------------------------------------------------------------------------------
 

Attachments

  • 123.jpg
    123.jpg
    117.7 KB · Views: 16
  • 21.jpg
    21.jpg
    75.1 KB · Views: 16
  • sar ea.mq4
    635 bytes · Views: 15