Sir,
I am making screen for 5 mintute and I want this filter to work at 30 minute period
Please inform me where to write the code for time change.Before the above code or after it?
To make the filter work with a 30 minute period (30*60 = 1800 seconds), you have two choices:
a = timeframeapply(1800 , [RULE]);
OR
TimeframeSet(1800);
a = [RULE];
TimeframeRestore();
Please note that few functions do not work (including StochSlowD) when changing time-frame. This issue was fixed and you should be able to use them after the next release.
Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.