[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 318
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
How it? I have it in indicator line settings after int init()
ArrayInitialize(Buffer,EMPTY_VALUE);
You give the default value in the init.
Hi all, can you tell me what you can think of? In the indicator, there is an external parameter - extern bool save = false;, then you need to manually switch to - save = true; and the program will remember something. But when you change timeframe, you need to reset the parameter to - false;.
Run, with true, and when you change the timeframe, to change it to false?
Well, what's the problem
more precisely, the ctf declaration must be placed before init
The problem is that after a timeframe change, the value of the external variable is not reset in the indicator properties, or is this not possible?
Need help changing an EA
The Expert Advisor should trade on the reverse.
Instead of sell limit orders buy
and buy limit orders sell
Strange, this is the first time I've seen "sell limit -> buy" and "buy limit -> sell" reversed. There are current Bid and Ask, possible acceptable levels for setting pending orders including stoplevels and freezes, but how to simply do the opposite of what you suggest - I have no idea. It completely changes the logic. Well, calculate the acceptable parameters of the OrderSend function for your conditions, consider restrictions, and just - try. You may also look at the debugging information...
I haven't specified it myself...:-) but maybe here the author wants to turn a debugging TC into a punching one...:-) and that's it.
... but how to simply do the opposite of what you suggest is beyond me. The logic changes completely. Well, calculate permissible parameters of the OrderSend function for your conditions, consider restrictions, and just - try it. You can also look at the debugging information...