Smivedor:
Hello guys I have put my code, and it does compile but I am un able to test it does anyone know why. For context I am trying to back test through the strategy tester.
Please edit your post and paste code wth the </>
Smivedor :
Create an instance of Ctrade which is a library
testing basically
Hello guys I have put my code, and it does compile but I am un able to test it does anyone know why. For context I am trying to back test through the strategy tester .
Please:
- Use the Styler in the MetaEditor Code Editor
- insert the code correctly: when editing a message, press the button
and paste your code into the pop-up window (for the first time I corrected your message and pasted the code correctly)

Styler - Developing programs - MetaEditor Help
- www.metatrader5.com
The styler quickly brings a source code design in line with the recommended standard. This makes the code look professional and easy to read. A...
Recommendations:
instead of
double Ask = NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_ASK),_Digits); double Bid = NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_BID),_Digits);
use SymbolInfoTick (and DO NOT USE 'NormalizeDouble'!!!)
Carefully read all the messages in the "Journal" tab - error messages from the terminal are published there.

Documentation on MQL5: Market Info / SymbolInfoTick
- www.mql5.com
SymbolInfoTick - Market Info - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5

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
Hello guys I have put my code, and it does compile but I am un able to test it does anyone know why. For context I am trying to back test through the strategy tester.