Il_Messia: Seems OrderProfit<0 doesn't work...
int ExpireX=60*MaxHour; : if(OrderOpenTime()<=TimeCurrent()-ExpireX)
- Print out your variables, and find out why.
- if( seconds < seconds - nMinutes) will usually be true.
WHRoeder:
Thankyou...seems order profit is always 0, still when i'm gain. I don't know what's wrong
- Print out your variables, and find out why.
- if( seconds < seconds - nMinutes) will usually be true.
Why do you think OrderProfit doesn't work?
Try to understand WHRoeder's post and fix your time calculation.
sorry maybe i can't understand something...i'm italian and it's easy don't understand.
time calculation was good but i can't comprend why Orderprofit return 0 value
What does the semicolon at the end of the OrderSelect line do?
Solved using the orderprofit calculate
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 guys,
here i am again to ask you an help.
As in subject i wish EA close trades after X minute if position is in loss. So i write the following code:
Backtesting log return me on "SUPERATO TEMPO MAX.." and it closes every trade after my time.
Seems OrderProfit<0 doesn't work...
How can i indicate only in loss positions??
Thank you for your help.