Sapphire Strat Maker - ENUMs documentation

Sapphire Strat Maker - ENUMs documentation

14 March 2024, 19:48
Emanuel Cavalcante Amorim Filho
0
113

1. Introduction


This is the documentation for Sapphire Strat Maker and Sapphire Strat Maker Alt (Free) expert advisor - an EA which allows you to create your own strategy without coding. This is the beauty of this Expert Advisor: create your own strategies - be creative - and don't be locked to a single strategy anymore. Optimize the parameters you want to find the best sets and you're ready to go!


Feel free to contact me if you have any question about the documentation or need help to create a strategy.


2. Blog posts

3. ENUMs Documentation/values


This documentation is provided in the following form: ENUM_TYPE = integer representation. Take the parameters of a moving average as an example (check the Documentation - Indicators to insert the correct parameters):



From the table below, we can see that 0 is the integer representation for the MODE_SMA in the ENUM_MA_METHOD.

Also, we see that 1 is the integer representation for the PRICE_CLOSE in the ENUM_APPLIED_PRICE.


So this moving average is a simple 6-period moving average applied to the close price series with no bars shift.


3.1. ENUM_MA_METHOD

    • MODE_SMA = 0
    • MODE_EMA = 1
    • MODE_SMMA = 2
    • MODE_LWMA = 3


3.2. ENUM_APPLIED_PRICE

    • PRICE_CLOSE = 1
    • PRICE_OPEN = 2
    • PRICE_HIGH = 3
    • PRICE_LOW = 4
    • PRICE_MEDIAN = 5
    • PRICE_TYPICAL = 6
    • PRICE_WEIGHTED = 7


3.3. ENUM_APPLIED_VOLUME

    • VOLUME_TICK = 0
    • VOLUME_REAL = 1


3.4. ENUM_STO_PRICE

    • STO_LOWHIGH = 0
    • STO_CLOSECLOSE = 1


4. CONCLUSION


If you have any question, feel free to reach out to me.




Share it with friends: