DislikedCan someone help me add a code to this indicator or replicate the function? it is a timeframe switcher attached an image of how i want it to perfform i also attached a source code file but just a small part of it. I need this to be an indicator. Thank you! {file} {file} {image}Ignored
Attached File(s)
AutoTfSwitch.ex4
28 KB
|
78 downloads
Select Switch Method provides 4 methods:
- Switch On New Bar Ascending
- Switch On New Bar Descending
- Switch On Timer Ascending
- Switch On Timer Descending
In order to avoid conflicts we need to input:
Start Switching at:
End Switching at:
This is because otherwise the code will be switching all the time.
And, in the situation when it ends the loop, and the trader then changes the timeframe, the code will switch, if we don't give that limitation.
The indicator provides two ways of switching:
By New Bar of chosen timeframe (we use broker's hours in this case),
By Timer (we use the local time, or computer time).
The by Timer method will most likely be out of sych with the bar periods.
We can also enable Alerts to inform us when the timeframe is changed.
Do not change the indicator file name!!!
If you're looking for the Holy Grail indicator - STOP!