指定
Hello,
I need an expert advisor that can manage my manual trades when market is going against my existing trade direction and close the trade when in profit including my manual bid. I will set the risk position for the bids. (The risk position is the minimum price distance between the extreme price (highest or Lowest) or my trade). Once the actual price goes against the risk position it triggers the Robot to recover the losses until minimum distance is achieved. The recovery bids can take different lot sizes based on the programmer recovery plan but it should have risk management logic to avoid it turning to losses. I will set a target distance and the expert advisor will use the existing period Highest and lowest prices to assist the recovery bids by projecting the take profit position based on existing trades. The EA will change the actual distance to % and compare the current price to the % position to enable it take bids towards the market direction.
Example if price starts at 92 and goes to HIGH of 100 and LOW of 90, then distance is 10 and the 10 will be 100%. If price changes and HIGH gets to 105 and Low remain 90, the distance is 105-90=15. This will change to 100% as well. If price HIGH remains 105 and LOW price falls downwards to 80, then the distance will be 105-80=25. This will also change to 100%.
So to enable the Robot, if i take a SELL bid at 98 when gap was still 10, and price goes to 105, the Robot will trigger a BUY upwards above 60%, or a SELL downwards below 40% as defined below.
If i take a BUY at 102 (stage 2 when we have a gap at 15) and price falls down, the robot will trigger a SELL once price falls below 40% range and use to recover the losses of the BUY bids when price falls downwards.
SETTINGS FOR BUY AND SELL LIMITS
=IF(current price position is>=60%,"BUY",IF(current price position is >0.4,"WATCH",else if current price position is<40% "SELL"))
SO If i take a BUY and price falls downwards below a range of trade at 40%, it triggers a SELL downwards until it reaches the Lowest price, or it recovers the losses.
If i take a SELL and price goes upwards, it triggers a BUY once market price reaches 60% of the Month position and goes upwards.
It converts the distance between the Highest and Lowest price to 100% from date of installation.
NB. Set the buy and sell % to variable to be determined manually.