Price Volatility and Change

 

Hi!

I tried to utilize SymbolInfoDouble(_Symbol, SYMBOL_PRICE_VOLATILITY) and SymbolInfoDouble(_Symbol, SYMBOL_PRICE_CHANGE) ti get these information in Strategy Tester but both return "0" all the time.

Basically I'm doing:

        ask = SymbolInfoDouble(_Symbol, SYMBOL_ASK);        

        bid = SymbolInfoDouble(_Symbol, SYMBOL_BID);        

        last = SymbolInfoDouble(_Symbol, SYMBOL_LAST);     

        double Volatilidade = SymbolInfoDouble(_Symbol, SYMBOL_PRICE_VOLATILITY);

        double DeltaPercent = SymbolInfoDouble(_Symbol, SYMBOL_PRICE_CHANGE);

I'm getting ASK, BID and LAST successfully. What can I doing wrong here?

I appreciate for any help.

 
AliceRioBR:

Hi!

I tried to utilize SymbolInfoDouble(_Symbol, SYMBOL_PRICE_VOLATILITY) and SymbolInfoDouble(_Symbol, SYMBOL_PRICE_CHANGE) ti get these information in Strategy Tester but both return "0" all the time.

Basically I'm doing:

I'm getting ASK, BID and LAST successfully. What can I doing wrong here?

I appreciate for any help.

did you ever figure this out ? I am facing the same issue.

 
AdnanSyed:

did you ever figure this out ? I am facing the same issue.

Your broker dont get back this value. try on other broker

 

Just  Set Modelling to "Every tick"

Strategy Tester ToolBox > Setting Tab > Set Modelling ComboBox to Every tick (not Every tick based on real ticks)

Check Attach Image ;)

The Fundamentals of Testing in MetaTrader 5
The Fundamentals of Testing in MetaTrader 5
  • www.mql5.com
The idea of ​​automated trading is appealing by the fact that the trading robot can work non-stop for 24 hours a day, seven days a week. The robot does not get tired, doubtful or scared, it's is totally free from any psychological problems. It is sufficient enough to clearly formalize the trading rules and implement them in the algorithms, and...
Files:
Reason: