buy = b1 (aa = 1) or b1(aa = 2) ......... or b1(aa = 10)
Basically I am looking for a simple loop within which I can check if the above condition is satisfied. As of now I can write 10 times, however I would prefer a compact statement.
Also, I would appreciate if you could explain how to use RemoveSameSignals( ARRAY array, ARRAY array). I want to use it to remove similar multiple signals.
RemoveSameSignals: Returns 1 on the first occurence of 'true' signal in the first array.
then Returns 0 until the array become 'false' then 'true'.
"true" means 1 and "false" means 0.
Still it is not clear, would appreciate if you could give a live example which I can plot and see the difference between with and without this function.
with this I was able to remove multiple buy, sell signals. Looks like this might be a good function for the day trading, however, on EoD chart it would pull you out of the trade much earlier. Do let me know if my observation is correct.
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.