仕事が完了した
指定
So I want you to change the option of placing trade at a specific time. Make it to place a trade in the direction of every candle that closes on the TF used.
eg, the ea is placed on the 4hr TF, it should buy on the close of bullish candles a specified MA and sell on the close of bearish candles below
specific MA (this is what it already does so no modification of this).
the ea should place trades only when the trades are above/below a certain distance of existing trades. (it already does this so no
modification)
The only modification needed is for the ea to place trades on every candle close. so the hour and minute to place trade parameter should be
replaced with the start hour and end hour so that the ea should not place a trade outside these periods. eg, the ea will have a start and end
period. so the ea will not work outside this start and end period.
These are the current parameters against new parameters
Magic number - Keep this parameter
Comment - Keep this
parameter
Slippage - Keep this parameter
Min Distance - Keep this parameter
Trade
hour - Modify to Start Hour
Trade minute - Modify to End Hour
Candle - Keep this parameter
LotSize - Keep this parameter
Number of
Trades - Keep this parameter
Max Number of Trades - Added Parameter This means EA will check the number of trades placed by the ea on the specified Currency pair. Ea
wont place trades to exceed the maximum trades placed by ea. Note that other trades of same currency pair can be running but once it was not
placed by this ea, the ea will not consider them as part of the max trade calculation
Stoploss - Keep this parameter
Take profit - Keep this parameter
So the ea will now only work and place trades on candle closes during the period between the start and end hours. The above modification is for the SpecHourEA_716
Please note that this work order is time sensitive and should be completed within specified period.
Below are the intial order and the modifications given to initial developer.
I need an ea that will buy or sell at a particular time based on candlestick parameters. Please check attached parameters
Time Hour 5 (The hour that the ea will place the trade. This should be based on the broker time and should consider the minute stated below)
Time Minute 30 (The minutes of the hour above that the ea will place the trade. This should be based on the broker time)
Candle 0 (0 standing for the current candle which is still active, -1 standing for the just closed or previous candle, -2 for the previous 2 candle)
Lot 0.1 (This stands for the lot size to be used in placing the trade)
StopLoss 200 (This should be for 5 or 3 digits broker. Where 200 means actual 20pips)
TakeProfit 500 (This should be for 5 or 3 digits broker. Where 500 means actual 50pips)
No. of Trades 4 (This should be the number of trades that will be placed at the same price with the above parameters on each)
Comment yes (This should be the comment that will be placed on the trade)
If candle parameter is 0 and time reaches, the ea should check to see if the current candle (which has not closed) is bullish or bearish. If it is bullish, the ea should place a buy trade with the parameters above. If the candle is bearish, it should place a sell.
If the candle parameter is -1 and time reaches, the ea should check to see if the previous candle (which has already closed) is bullish or bearish. If it is bullish, the ea should place a buy trade with the parameters above. If the candle is bearish, it should place a sell.
In all instances, if the candle is neither bullish or bearish, (same open and close price), then the ea should not place any trade at the stated time.
The ea should place trades only at the specified time every day. I will not need to set everyday.
Second modification
i want a modification of this ea. I want you to add another parameter.
Difference Distance
This is the minimum distance between orders in the same direction.
Eg. If I am in a buy and the candle closes. If the candle is bearish, the ea should sell. But if the candle closes bullish, it must first check if there is a running buy trade on that same pair. If there isnt any, then the ea can buy. But if there is a buy and the difference distance is 100 (10pips) and the existing buy is within 10pips of the current price (price for new buy), then the ea should not place any trade. Same applies to sell if there is an existing sell trade within the difference distance parameter.
This distance applies to the pair of the ea. The already existing trade can be any trade at all, not necessarily one that was placed by the ea. this should apply to existing trades that were placed manually or by another ea.