Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
My trading system is based off of round or psychological number trading. It is a trend-following system, rules are pretty basic. I successfully trade this system manually but I need a robot to be able to trade more assets and to trade all the signals because I' missing signals by sleeping or doing other important things. This robot will be used on a live account and on multiple accounts. I use AMP Futures and there new mt5 platform. they also offer a demo as well to help if not familiar. I need the robot to trade Futures, that's all. For right now I trade Currencies (micro and mini), gold, oil, heating oil, soybeans, YM mini dow, feeder cattle, and will trade more with a robot. The round number I use for trading levels are as follows: Currencies every 50pips, gold every 10 points-1290.00 to 1300.00 for ex., oil every .5 points 66.50 to 67.00, heating oil .01 points 2.1900 to 2.2000, soybeans every 10 points 1020.00 to 1030.00, ym every 100 points 24400 to 24500, feeder every 1 point 147.000 to 148.000 and we would have to see about some kind of setting to adjusts these levels in the EA obviously.
so here we go with the rules, I'll explain a buy because a sell is just vise versa:
1) Position size we can do manually for now as I am looking to implement this robot asap.
2)I use just the 180 weighted moving average but on different time frames depending on the volatility of the asset I'm trading.
3) A BUY 1) we get a candle to CLOSE above the 180ma (this is the set up), 2) we get a higher high than the previous candle that closed above the 180 (this is the confirmation), 3) a BUY STOP is placed at the next higher round number. So if we get a close above the 180 but don't get a higher high OR we get a higher high and never make it to the BUY STOP and execute I would like to find a way to cancel this order and I think a good signal to do that is when we get our first close BELOW the 180 because at that moment I'm not allowed to go long anymore, and new close ABOVE the 180 would have to happen and start the process over again.
4) assuming our order gets executed, a sell stop is placed with the initial buy stop order and its at the next round number level down, so on the GBP if we get long at say 1.3300 our initial stop would be places at 1.3250.
5) so if price continues up the next thing we're looking for is hopefully a trend and this is how I stay in as long as possible, so if we're long at 1.3300, as soon as price hits 1.3350 the stop is move up to break even. I don't like breakeven trades so on this initial movement of the stop I like to be below 1 or 2 pip to take a very small loss instead of break even. next its repetitive, price climbs to 1.3400 stop moves up to 1.3350, price hits 1.3450 stop moved up to 1.3400 so on and so on til we're knocked out. so obviously as price hits new round level the stop is trailed by one round level below it.
6) RE-BUY lets say we get knocked out at 1.3400 that trade is obviously over and I can only go long if I'm above the 180ma and ony short if below the 180ma, so in this example we're out of the trade at 1.3400, the robot at this point should put in a re buy at 1.3450 (one round level up from where we got knocked out) point is if we're in a nice trend and price just retraced some but knocking us out a new buy stop is placed at 1.3450 and if the market takes off again we're in at 1.3450. for each level price retraces the buy stop is move down. so we're out at 1.3400 and price goes down to 1.3350 the buy stop is move down to 1.3400 only if this all takes place staying above the 180 cause like I said we can only be long above the 180. If the price keeps heading south and CLOSES BELOW the 180 we are now in a sell scenario and that new re buy stop order is cancelled.
So I think I explained the best I can, I'll edit this if I remember other details but this is basically all of it.
I look forward to hearing on price and approx. how long it will take to make.
Thank You