Questions from Beginners MQL5 MT5 MetaTrader 5 - page 736
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
...
void OnTick(){
Comment(Somevalue);
}
"1487811600"
Why does this happen? How can the correct string value be output?...
void OnTick(){
Comment(Somevalue);
}
"1487811600"
Why does this happen? How can the correct string value be output?Folks, are signals just automatic trades or do MQL tools need to do something?
I.e. if I am a signal provider, then I just publish my trades in real time, and someone, for example, repeats them ?
Is it so ?
1. Folks, are signals just automatic trades or do MQL tools have to do something?
I.e. if I am a signal provider, I just publish my trades in real time, and 2. someone, for example, repeats them ?
Like this ?
So, in fact, if I register as a provider, it means that I will just publish my deals?
What does it mean to subscribe to signals then - is it like only a select few publish ?
Thank you. The cursor hasn't popped up now for some reason )
Magic :)
The code below encodes a simple idea.
If the last closed order was on SEL
If the last closed order was on the NEL
Open a NEL order
if ( OrderType ()==OP_SELL)
X = OrderProfit( );
if (OrderSelect (Ht-1,SELECT_BY_POS, MODE_HISTORY))
if ( OrderType ()==OP_BUY)
if(X < 0)
OrderSend(Symbol(),OP_SELL,0.1,Bid ,3,Ask+400*Point,Ask-200*Point,"17-10",123 );
What language construct can be used to add two more conditions to this code (circled in red)
If the last closed order is NEL
If the last CEL order closed
If the last closed order has closed on the NEL
If the last closed order has been closed on aSL
Thank you for your help.
I would be very grateful if you could write the code and not just explain what has to be done.