
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
Read my post before yours, the one that you have quoted.
Use the styler to tidy up the code.
sorry my good friend I always forget styling
"
" Why are you doing this inside the loop?
Complete the loop and then do the check. "
by "doing " I assume you mean OrderSend() right ?
is there alternative for this ?
sorry my good friend I always forget styling
"
" Why are you doing this inside the loop?
Complete the loop and then do the check. "
by "doing " I assume you mean OrderSend() right ?
is there alternative for this ?
No, there was no OrderSend in the code when I wrote that.
Think about what your code is doing.
Loop through the orders to find the last order.
Only do anything once you have found the last order.
Until the loop has finished, you don't know whether the order is the last order.
Complete the loop before doing anything with the last order.
No, there was no OrderSend in the code when I wrote that.
Think about what your code is doing.
Loop through the orders to find the last order.
Only do anything once you have found the last order.
Until the loop has finished, you don't know whether the order is the last order.
Complete the loop before doing anything with the last order
I believe this is the version that you think I should be doing let me send the code :
it compiles just fine but in the back testing it does not open any trade
I believe this is the version that you think I should be doing let me send the code :
it compiles just fine but in the back testing it does not open any trade
Yes, it will open trades. Just correct the OrderSend error.
Do a search of the forum, there must be thousands of posts about this error.
Also, in your code,
Always use
#property strict
When starting a project use the "New" button top left of the editor. #property strict will be included automatically.
If the compiler issues a warning don't ignore it, fix it.
Yes, it will open trades. Just correct the OrderSend error.
Do a search of the forum, there must be thousands of posts about this error.
Also, in your code,
Always use
#property strict
When starting a project use the "New" button top left of the editor. #property strict will be included automatically.
If the compiler issues a warning don't ignore it, fix it.
coolest
/ \
/ \
ladies and gentlemen the award of being kindest _______ smartest triangle goes to Keith Watford
thank you man for every thing .
hello again
I wanted to create a new topic but I thought the situation might be very close to this topic
so here is the problem
the solution above you gave me is perfectly working on single timeframe like 1 minute or any single time frame
but I wan to do some thing that can perform multi time frame
here is the code :
it has magic number /order type / order comment that EA wont get confused choosing the wrong order
but it does not work and it openes so many trade in less than a second