Indicator work on a particular Time Frame
-
Please how do i make an indicator work on only the TF i select as input..
Because after selectin the TF..The inidctaor uses the current Timeframe and the timeframe i select to trade.
i want it to trade using a particular timeframe i select regardless of the chart i apply it to..

-
@alexitoeve50 This normally works for me, put a shared link here so block set up's can be checked
-
thank you thiis is the link
https://fxdreema.com/shared/YAuckZm1e -
@jstap said in Indicator work on a particular Time Frame:
@alexitoeve50 This normally works for me, put a shared link here so block set up's can be checked
the link below
https://fxdreema.com/shared/YAuckZm1e@jstap said in Indicator work on a particular Time Frame:
@alexitoeve50 This normally works for me, put a shared link here so block set up's can be checked
-
@alexitoeve50 All looked ok to me but because use macd value should be bool is it skipping rhis block?

-
@jstap set macd vallue to true then backtest..
The ea should use only the time frame macd I set.
But it is using the current time frame and the timeframe I set inside macd.
So confused
-
@alexitoeve50 What blocks are using the wrong time frame? Any blocks with no time frame set will use current.
-
@jstap only block 97 of buy uses timeframe I set which is macd and also I can't rember the block number for sell py uses time frame I set for macd..
So why do the macd use current and the tf I set instead of the tf I set
-
@alexitoeve50 This is hard to say but for me if all blocks that contain MACD had the same timeframe this is what I would expect it to use, change the constant value from 1 to PERIOD_M1, might correct things.
-
I made a mistake all works now
-
@alexitoeve50 SHARE LINK