danilokramer:
Boa tarde
Alguem poderia me ajudar?
No meu codigo abaixo, o meu stoploss nao e executado quando o preco atinge a linha so stoploss. Teria algum erro no codigo?
Grato por qualquer ajuda.
You are posting in the English section, so please write in English. Alternatively you can post in the Portuguese forum.
As for your question, the problem is probably the following:
stop=candle[2].low - 2;
You are not adjusting the value to the number of Points or something similar in scaling. If this were for EUR/USD for example, your stop-loss would be at a negative price, eg. 1.2134 - 2 = -0.7866 which is impossible.
There are probably other problems but that was the first one I noticed.

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
Boa tarde
Alguem poderia me ajudar?
No meu codigo abaixo, o meu stoploss nao e executado quando o preco atinge a linha so stoploss. Teria algum erro no codigo?
Grato por qualquer ajuda.