文件大小： 2.18 KB
This is simple script which opens positions according to a Fibonacci Retracement object. OpenFiboOrder script has just one input variable — number of lots. The script searches for the latest Fibonacci Retracement object. Order open level is set to 1 pip over 100 fibonacci level for buy order and 1 pip under 100 fibonacci level for sell order. SL level is fixed on 0 fibonacci level. Then the script gets the first fibonacci level over 100 and sets in this place TP, so it is possible to change TP range by modification of the Fibonacci Retracement object. OpenFiboOrder calculates proper levels taking into consideration a difference between ask and bid price (spread). Just before placing order the script checks whether SL, TP and order open levels are not too close. If any error occurs, the script displays message.
Charts before and just after execution.