Chart modified Block
-
in "on chart" tab there is a block called "chart modified" it does not have any description , can this block be used to detect the timeframe change ? i mean if i manually change the timeframe from lower to higher or higher to lower , can this block be detect that?
and what other chart modification this block can detect? -
Interesting question. I never used that block. Does someone know?
-
@zackry hi. no, you can't use this block for change timeframe.
if you want to change the timeframe for some event you should use this block
"Set Current Timeframe for next blocks" -
@xfire hi, i am not trying to change the timeframe, i am trying to make the ea detect when the timeframe is changed manually by clicking "m1, m5, m15 , m30, h1, h4 etc"
-
You can create 2 variables. One to catch the current timeframe:

And another one to detect a change in the value of the previous one.
-
@l-andorrà interesting, thanks

-
You're welcome. Tell me if that works, please. I never tried it.
-
@l-andorrà
will do

yep it works , just by catching the current timeframe and then comparing it with the previously stored timeframe