The OpenBuyPosition_X script is designed to buy at fixed values of Stop Loss and Take Profit in points from the current price.
The main advantage of this script is the ability to fix deals' losses when Stop Loss triggered depending on the size of the whole deposit using LossMM script input parameter which defines equity volume rate lost when Stop Loss triggered to the deposit equity.
Script input parameters:
//+----------------------------------------------+//| SCRIPT INPUT PARAMETERS |//+----------------------------------------------+inputdouble LossMM=0.1; // Losses from balance when Stop Loss triggeredinputuint DEVIATION=10; // Price deviationinputuint STOPLOSS=300; // Stop Loss in points from the current priceinputuint TAKEPROFIT=800; // Take Profit in points from the current priceinputuint RTOTAL=4; // The number of retries in unsuccessful dealsinputuint SLEEPTIME=1; // Pause time between retries in seconds
OpenBuyPosition_X:
Description:
The OpenBuyPosition_X script is designed to buy at fixed values of Stop Loss and Take Profit in points from the current price.
The main advantage of this script is the ability to fix deals' losses when Stop Loss triggered depending on the size of the whole deposit using LossMM script input parameter which defines equity volume rate lost when Stop Loss triggered to the deposit equity.
Script input parameters:
Autor: Nikolay Kositsin