This library provides input parameters and functions to build your Binary Options strategy stored in an indicator to test and improve your strategy in the Strategy Tester of MetaTrader 4 with the Binary Options Strategy Tester utility from Marketplace.
Download this library (BinaryOptionsStrategyLibrary.mqh) and place it into\Include folder ([path to your MetaTrader 4]\MQL4\Include). After that you are able to use the functions by including the file (see Usage).
If you have downloaded and stored the libary into \Include folder ([path to your MetaTrader 4]\MQL4\Include), you are able to include it like this:
The library provides the following input parameters to use in your indicator which contains your Binary Options strategy:


The library provides the following functions to use in your indicator which contains your Binary Options strategy.
PlaceTrade()
Place a trade (OP_SELL or OP_BUY) in Binary-Options-Strategy-Tester.
Parameters:
_tradeOperation - [in] Trade operation type. It can be OP_SELL or OP_BUY of Trade operation enumeration.
Return value:
No return value.
PrintDebugValue()
Prints out debug values while Binary-Options-Strategy-Tester is running.
Parameters:
_labelText - [in] Text of the label.
_valueText - [in] Value to print out.
_row - [in] Row of the message, starting with 0.
Return value:
No return value.
CallStrategy()
Function will decide if tester has to check for the strategy rules. Call this function in OnCalculate event of your indicator which contains your Binary Options strategy.
Parameters:
No parameters.
Return value:
No return value.
Note:
See "How to build and test a Binary Options strategy with the MetaTrader 4 Strategy Tester" for an example how to use this library and implement CheckMyRules() in combination with Binary Options Strategy Tester utility from marketplace.
v1.01
Custom Moving Average Indicator
Code based on MetaTrader 4 Moving Average indicator.
Ichimoku Kinko Hyo System
An EA fully based on the Ichimoku Kinko Hyo system.
LB & SB using RSI & Momentum
The same EA's as previously released. The additional code allows the user to set parameters on RSI and Momentum.
Ultimate Moving Average
Moving Average based on Ultimate Oscillator. It calculates weighted average of three moving averages (Simple, Exponential, Smoothed or Linear Weighted).