Topics
Replies
makhzen
14 Jul 2022, 12:50
( Updated at: 21 Dec 2023, 09:22 )
RE: RE:
makhzen said:
PanagiotisCharalampous said:
Hi makhzen,
Did you check your logs? Do you get any errors?
Best Regards,
Panagiotis
Hello Panagiotis ,
I restarted ctrader yesterday i forgot to check the log...but since yesterday i have this (from
Maybe the problem is about the SL/TP based on ATR ?
Thank you,
Makhzen
i think error come from here i changed
var StopLoss = (MarketSeries.Close.Last(1) + (_averageTrueRange.Result.Last(1) / Symbol.PipSize * ATRfactor));
by
var StopLoss = (MarketSeries.Close.Last(1) + (_averageTrueRange.Result.Last(1) / (Symbol.TickSize / Symbol.PipSize * Math.Pow(10, Symbol.Digits) * ATRfactor)));
You think it can be the source of the problem ?
Thank you
@makhzen
makhzen
14 Jul 2022, 12:41
RE:
PanagiotisCharalampous said:
Hi makhzen,
Did you check your logs? Do you get any errors?
Best Regards,
Panagiotis
Hello Panagiotis ,
I restarted ctrader yesterday i forgot to check the log...but since yesterday i have this (from
Maybe the problem is about the SL/TP based on ATR ?
Thank you,
Makhzen
@makhzen
makhzen
03 Jan 2024, 17:28
RE: M1 Data Optimization accuracy
PanagiotisCharalampous said:
Yes my stategy is only based on Bar close, ohh you mean the take profit/stop loss are tick based, if i use close/open bar as tp/sl the result will be accurate, it's obvious now thank you for your help
@makhzen