Hi All
Happy 2019 to everyone.
I am a FX and Equities trader from the Sunny UK and recently moved to Aus.
I have decided to move away from my MT4 platform and am using Amibroker. I am a trader not a programmer and having a difficulty to create a back test script.
EMA30 = MA( C,30);
Buy1 = EMA30 < C;
Sell1 = EMA30 > C;
SL_Buy = (H - L);
SL_Sell = (H - L);
TP_Buy = H + (H - L);
TP_Sell = L- (H - L);
BuyPrice = Close;
SellPrice = Close;
Buy = buy1;
Sell = SL_Buy OR TP_Buy;
Short = Sell1;
Cover = SL_Sell OR TP_Sell;
I am trying to create a back test script. I have set my Stop Loss and Take Profit, based on a simple moving average entry. However when i run the backtest function no trade has taken place, I checked the exploration which identifies the entry points.
Any helping hands ?
Regards
when i run the backtest function no trade has taken place
SL_Buy = L;
/* Take profit - length of todays candle*/
TP_Buy = C + (H - L);
/* Close at TP or SL*/
Sell = SL_Buy OR TP_Buy;
BuyPrice = Ref(Open,1);
I have decided to move away from my MT4 platform and am using Amibroker. I am a trader not a programmer
/* Buy at tomorrow open*/
BuyPrice = Ref(Open,1);
/* Short at tomorrow open*/
ShortPrice = Ref(Open,1);
Settradedelays(1,1,1,1)
BuyPrice = Open
BuyPrice = Ref(Open,1);
Thanks for your help
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?