Yes, I declared variable isResistance globally (atter external variables). If it's value is assigned "true" by assignment (by conditions), arrow is drawn on the bar.
conditions:
if (High[1] > ResistLevel && Close[1] < ResistLevel) isResistance = true;
However if High[1] is lower than ResistLevel,
isResistance becomes "false" without assignment to "false"
Should it be that way ?
edas:
I don't believe that is the case or even possible . . . show your code or just look for it yourself, try searching using Ctrl + F in the editor . . .
However if High[1] is lower than ResistLevel,
isResistance becomes "false" without assignment to "false"
Should it be that way ?
RaptorUK:
I don't believe that is the case or even possible . . . show your code or just look for it yourself, try searching using Ctrl + F in the editor . . .
I don't believe that is the case or even possible . . . show your code or just look for it yourself, try searching using Ctrl + F in the editor . . .
Yes, I find where error was. Thanks for help !
Edward
edas:
Well done :-) you are welcome.
Yes, I find where error was. Thanks for help !
// need to set to false if (High[1] > ResistLevel && Close[1] < ResistLevel) isResistance = true; /////////////// or just isResistance = (High[1] > ResistLevel && Close[1] < ResistLevel);
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
Hello,
I have some problems to use several criterias for market operations.
For example, for selling:
1) First I want price to reach some resistance level (red line)
2) Second, I need to wait for market to broke under some lower level.
I don't want to use OrderSend with limited time, as I need more criteria to be fulfilled in case of Order Sending (for example some level of Macd at sending Order).
What kind of variable or sentence construction should I use ?
Below is example of some code. However isResistance don't save its value at next bar (despite I declare it before Start() function)
Thanks,
Edvard