[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 583
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
The ticket stays as it was
????
How do I check if the order is closed or not?
Thank you very much for the recommendation, I almost figured it out, just can't remember if the order is triggered, does the ticket take a value of -10?
The ticket does not change. It just has an OrderCloseTime greater than zero
And if a stop or profit is triggered, it also becomes less than zero, if I'm not mistaken -1 ?
How do I set the condition correctly ? Please advise.
And if a stop or profit is triggered, it will be less than zero, if I am not mistaken -1 ?
How do I set the condition correctly ? Please give me a hint.
It will not become different, it remains the same. Closed positions go to the deal history list with the same tickets.
Go through this very list of transaction history and look for the order there.
Why so? Output all flags at once in one Comment`.
Right there:
there was no rise on the ADX, i.e. the condition
// check for rising ADX > 20, or just rising ADX ---- check for strength of movement.
if (x<20 && x0>20) {f3 = 1; }
is not met, but the trade is open
there was no rise on the ADX, i.e. the condition
// check for rising ADX > 20, or just rising ADX ---- check for strength.
if (x<20 && x0>20) {f3 = 1; }
is not met and the trade is open.
Judging by the comment in the screenshot - you are controlling the zero bar to make decisions.
This is not good... On a zero bar, indicators can go back and forth many times during bar formation, thus creating false signals (chatter).
To avoid this, check the first bar already formed.
Greetings!
I'm trying to display information about a previous candle (non-zero bar) - bullish or bearish candle, size of its body and shadows and ratio of shadows to the candle's body.
But it doesn't output a stone flower. It outputs wrong values.
Greetings!
I'm trying to display information about a previous candle (non-zero bar) - bullish or bearish candle, size of its body and shadows and ratio of shadows to the candle's body.
But it doesn't output a stone flower. It outputs wrong values.
Why do I need a cycle if I only take 1 bar? Just use 1 instead of "bar". Only check for new bars so that you don't have to recalculate everything on every tick.
And if a stop or profit is triggered, it will go below zero, if I'm not mistaken - -1 ?
How do I set the condition correctly ? Can you give me a hint?
one more time.
The simplest variant (schematic)