Download MetaTrader 5
To add comments, please log in or register
Learn operation principles of Trading Signals for MetaTrader.
Marcelo Coutinho
1151
Marcelo Coutinho 2014.05.22 19:43 

Hi there !

Were do I configure the pink fields ?

Where do I set its parameters ? (_Points and _Digits)

Thanks !

mrequest.sl=NormalizeDouble(price_info.bid+stop_loss*_Point,_Digits);   // Stop Loss (SELL)
Alain Verleyen
Moderator
30299
Alain Verleyen 2014.05.22 20:18  
YouTrade:

Hi there !

Were do I configure the pink fields ?

Where do I set its parameters ? (_Points and _Digits)

Thanks !

It's not clear what is your question.
Rodrigo Malacarne
Moderator
9852
Rodrigo Malacarne 2014.05.22 20:41  
YouTrade:

Hi there !

Were do I configure the pink fields ?

Where do I set its parameters ? (_Points and _Digits)

Thanks !

You cannot change these values... they depend on the symbol you're using...
Marcelo Coutinho
1151
Marcelo Coutinho 2014.05.22 20:42  
angevoyageur:
It's not clear what is your question.

Sorry ... I am trying to trade WINM14 and WDOM14 (dollar).

I cannot use the same EA because the SL gives me an error.

Further investigation shown the problem is the _Digits and _Point. Depending on the instrument I have to change it.

Question is ... How can I change it ? :)

Marcelo Coutinho
1151
Marcelo Coutinho 2014.05.22 20:43  
Malacarne:
You cannot change these values... they depend on the symbol you're using...

So what is the "best practice" here ?

Use an external variable ?

Rodrigo Malacarne
Moderator
9852
Rodrigo Malacarne 2014.05.22 20:44  
YouTrade:

So what is the "best practice" here ?

Use an external variable ?

What exactly are you trying to do ?
Marcelo Coutinho
1151
Marcelo Coutinho 2014.05.22 20:48  
Malacarne:
What exactly are you trying to do ?
   if(StringSubstr(_Symbol,0,3)=="WIN")
     {
      pontos=0.001;
      digitos=3;
     }

   if(StringSubstr(_Symbol,0,3)=="WDO")
     {
      pontos=1;
      digitos=0;
     }

(...)

To replace here (*)

mrequest.sl=NormalizeDouble(price_info.bid+stop_loss*_Point,_Digits);   // Stop Loss (SELL)
Rodrigo Malacarne
Moderator
9852
Rodrigo Malacarne 2014.05.22 21:10  
YouTrade:

Hummm... Now we're talking about the so-called "market knowledge", and it's not related to programming anymore... :-)

So, my question to you is: how many decimal places do "WIN" and "WDO" have ??

Another question: what is the usage you're trying to make out of _Point?

Marcelo Coutinho
1151
Marcelo Coutinho 2014.05.29 18:21  
Malacarne:

Hummm... Now we're talking about the so-called "market knowledge", and it's not related to programming anymore... :-)

So, my question to you is: how many decimal places do "WIN" and "WDO" have ??

Another question: what is the usage you're trying to make out of _Point?

Solved ! Thank you !
/
To add comments, please log in or register