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
hi, what is that meant your requirement to check on each new candle was solved by my code above?
I tried here, and it works.
hi i tried your method too thanks, but my problem is that when trade is open it closes on new bar and opens a new trade. It should not do that it should wait for the trailing stop to be hit.
hi i tried your method too thanks, but my problem is that when trade is open it closes on new bar and opens a new trade. It should not do that it should wait for the trailing stop to be hit.
yes, I understand what you meant :)
you should record (counted in a variable) your previous position before do something again at new candle to come.
maybe you need to create a flowchart before start writing your program.yes, I understand what you meant :)
you should record (counted in a variable) your previous position before do something again at new candle to come.
maybe you need to create a flowchart before start writing your program.but CheckOpenOrders should be returning true/false instead. then:
hi i tried your method too thanks, but my problem is that when trade is open it closes on new bar and opens a new trade. It should not do that it should wait for the trailing stop to be hit.
Btw, I can't find OrderClose() in your code :)
Can you please show me?
and also, you have some loops in a cycle.
example:
should be :
2 code above is looks the same, but actually both of them are different in results and performance :)
later you will understand that.
Btw, I can't find OrderClose() in your code :)
Can you please show me?
and also, you have some loops in a cycle.
example:
should be :
2 code above is looks the same, but actually both of them are different in results and performance :)
later you will understand that.
it doesnt have OrderCLose, just trailing stop and OrderSend. thanks for the extra info.....
Hi ztmalick,
This is what I am looking to do. Did you manage to fix your code in the end?