Техническое задание
Hi
I have an exisiting EA, this EA triggers long or short positions based on horizontal lines ins the chart.
Example: A horizontal line in color MediumSeaGreen would open a long position. A line in Forest Green would close ist. Based in the distance between them teh EA calculates the position size OR a given lot size.
As it is a little bit painstaking to set horizontal lines, change color i need a trade panel using this EA.
I want to have a trade panel with buttons for the following functions:
Buy Stop - Places a stop buy order in distance of the actual price (Distance in points to be set in settings of the EA). Level is actual price + distance. He should place the line for "OpenLong" in the chart. If Stop Loss and / or Take profit are set, these lines also be placed.
Sell Stop - Similar as Stop Buy, Level is actual price - distance.
Buy Limit- Places a limit buy, Level is actual price - distance
Sell Limit - Places a limit sell, level is actual price + distance
Buy - Market order buy with lines for SL and TP if set
Sell- Market order sell, same as buy
Trail - if Stop Loss should trail or not, locked button, if unlocked, stop trailing
Close - Closes all positions and pending orders
As input parameters to the EA, in addition to exisitng ones, the following
Distance - in pips / points, defines how much distance is between the level where the stop or limit penidng order or market orders are placed and actual price
Trailing Stop - in pips / points, how much behind the actual price he should trail
Trailing Step - in pips / points, trigger for trailing
Example: Actual price is 12000, T-Stop is 200 (11800) and T-Step is 100. When price moves to 12100 then T-Stop is 11900, when price moves to 12200, T-Stop is 12000
We use the lines already used in the EA (see screenshot above), same color same thicknes and style. When hit a button those lines should appear as defined in the chart.