Forum

Ichimoku Returning Incorrect Value

Good morning; I'm developing an EA that uses the Ichimoku Indicator . When I check the various values, I noted that the value for the Chikou Span is incorrect. Please see screenshot attached. How can I correct this? If anyone has encountered this problem, please point me in the right direction

Restrict opening new position within 60min of previous close

Good day; I'm trying to prevent my EA from opening a new position within 60 from having closed the previous position. //declared global variable datetime LastTradeCloseTime = 0 ; //then under void OnTick (){ //I've included it in my buy / sell conditions as follows: if (!isPosOpen &&

Ichimoku EA

I'm working on an EA and it executes correctly when the buy signal is confirmed but does not execute the sell signal . "Price Below Cloud" returns "False" when it should be "True". Can't find the problem... Please see code attached and comment. Appreciated