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);
}
--------------------------------------------------------------------------------------
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);
}
--------------------------------------------------------------------------------------