Script SendOrderLimitFibo - otlozhenniki on Fibourovnyam

Script SendOrderLimitFibo - otlozhenniki of Fibo levels

The script is designed to install a series of pending orders from the opening price and take profit on Fibourovnyam.

The script works as follows: when you run the script on the chart appears the object "Fibonacci» (Fibo) with parameters set as default. The user chooses the settings, if necessary, pending orders from existing templates or corrects Fibourovni manually (see. Figure 1).


When you run it on a graph appears:

1. The object of "Fibonacci» (Fibo)

2. Dashboard (see. Pic2.). It displays the amount of the transaction, a possible loss of money in the% spread (% of the difference between the opening price and Stop Loss). As each order is displayed:

• Profit is triggered Take profit and then triggered stop loss orders on the remaining / Profit is triggered Take Profit

•% return on surplus funds when triggered Take profit and then triggered stop loss orders on the remaining /% return on surplus funds when triggered Take Profit

• Factor PF = (Profit at operation of the take profit and stop loss is triggered later on the remaining orders) / (possible loss) / PD ratio = (Profit at srabatovaniyu Take Profit) / (possible loss)


3. Patterns Fibonacci levels

4. Arrow adjustment% loss.

To use an existing template you must remove it. After that, he will re-appear on the graph and will be highlighted in red. Modifying pending orders can be made manually via the Properties tab Fibo Fibonacci.

Template Settings orders made in the function FiboTypeKreat ():
double FiboTypeKreat () // Templates types Fibourovney

{// Fill principle:

// Pattern numbers should go in order !!!

// S - Stop Loss

// P - open price (for all orders one)

// FiboLevlsStrA [pattern number] = "[value level], [amount of the transaction (integer) or s or p]; ... # [symbol template]";

FiboLevlsStrA [0] = "0, s; 0.184, p; 0.618,1; 0.816,1; # P18.4 S0";

FiboLevlsStrA [1] = '0, s; 0.236, p; 0.618,1; 1.05,1; 1.382,1; # P23.6 S0 ";

FiboLevlsStrA [2] = "0, s; 0.382, p; 1.05, 2; 1.382,1; 1.618,1; # P38.2 S0";

FiboLevlsStrA [3] = "0.23, s; 0.618, p; 1.382,2; 1.618,1; # P61.8 S23";

FiboLevlsStrA [4] = "0.18,1; 0.618,2; 1.05,3; 1.62, p; 2, s; # P162 S200";

FiboLevlsStrA [5] = "- 2.1; 0.184,1; 0.95,2, 2, p; 2.8, s; # P200 S280";

return (0);

}


In order to set the script order, you must remove the object "Fibonacci".


During the course of the script message box appears with information about open orders, see. Fig.


// Settings that can be changed:

double LossMin = 2.5; // Minimum percentage of loss (range of variation, the lower limit)

double LossMax = 15; // Maximum percentage loss (range of variation, the upper limit)

double LossDefault = 5; // Percentage loss by default

double Commission = 0; // Commission to open / close orders in USD per 1 lot.

double OrdExpiration = 0; // Lifetime of a pending order of hours after installation. If 0, not used

double MaxLot = 100; // Maximum lot

double PriceMax = 50; // Position of the arrow Loss level is the maximum risk (LossMax)

double PriceMin = 300; // Position of the arrow corresponds to the minimum level of Loss risk tolerance (LossMin)

int FiboTypeDefault = 2; // Type Fibourovnya default. Select from FiboLevlsStrA (see. FiboTypeKreat ())