Download MetaTrader 5

Can a broker change an asset stop level? [SOLVED]

To add comments, please log in or register
Wemerson Guimaraes
611
Wemerson Guimaraes  

Hi all.


The Stop Level of an asset can change by broker or it's every the same ?


If i use the  MarketInfo(_Symbol, MODE_STOPLEVEL)  function to get the current stop level, i need to use it:

  1. Just one time, in initialization function ( OnInit function )... in this case, i am presuming that brokers do not change an asset stop level 
  2. Every time, in OnTick/OnCalculate functions... in this case, i am presuming that brokers can change an asset stop level 
whroeder1
15917
whroeder1  
Broker determines it, so broker can change it.
Wemerson Guimaraes
611
Wemerson Guimaraes  
whroeder1:
Broker determines it, so broker can change it.

Tx my friend!

whroeder1
15917
whroeder1  
whroeder1: Broker determines it, so broker can change it.

Also you can't call Market Info functions in OnInit as the terminal may not be connected yet and the chart updated. You must wait for OnTick. In indicators, wait for OnCalculate, call it, check the result, and return if not yet valid.

To add comments, please log in or register