İş tamamlandı
İş Gereklilikleri
Hi,
I have the following EAs (pls see attached files) which I require some slight modifications. Please retain the trading methodology and structure of the EAs as much as possible. The only thing that has to be incorporated is the automatic price setting mechanism. Currently, both EAs require users to manually input the price levels to place the pending orders.
EA 1: PingPong1Way.ex4
Here are the required changes for the EA
Currently, the EA requires user to specify the price levels. Please modify the code to enable EA to automatically determine the appropriate prices to place the pending limit orders based on the following rules :
a. User can set up the distance from current price that the EA will take the trade(s) ("Gap"). Please provide new field for user to input the desired Gap in pips.
b. EA can then compute & round up to the nearest 00/50 level to derive upper bound price ("Start Price 2") & round down to the nearest 00/50 level to derive the lower bound price ("Start Price 1"). Please retain the definitions of Start Price 1 and 2 found in the original EA.
For JPY pairs,
For example if Gap= 50 pips & current price of usdjpy is 121.25, then Start Price 2 is 122.00
121.25 + 0.50 = 121.75 round up to 122.00
Start Price 1 is 120.50
121.25- 0.50= 120.75 round down to 120.50
For non JPY pairs (i.e. EURUSD)
For example if Gap=50 pips & current EURUSD price is 1.0925, then Start Price 2 is 1.1000
1.0925 + 50 pips = 1.0975 round up to 1.1000
Start Price 1 is 1.0850
1.0925 - 50 pips = 1.0875 round down to 1.0850
c. If the trades are not filled after close of the candle, the EAs should use the opening price of new candle & recompute Start Price 1 and Start Price 2 levels based on step b described above
Please retain the methodology of the EA in managing the trades, including the display of the Start Price 1 and Start Price 2 levels in the chart.
EA 2: BT Trader.mq4
Please use the same price determination algorithm described above to compute the SellPriceAboveMarket and BuyPriceBelowMarket in this EA.
Start Price 2 in EA 1 can be taken to be equivalent to SellPriceAboveMarket in EA 2.
Start Price 1 in EA 1 can be taken to be equivalent to BuyPriceBelowMarket in EA 2.
Please provide 3 quotes for modifying
1) EA 1 only
2) EA 2 only
3) EA 1 & 2 only
Thanks.