Specification
Helllo
I need a robot to open orders based on m.a..
If price is above m.a, we are looking to buy bear bars close.
If price is below m.a., we are looking to sell bull bars close.
Must work in any TF
Conditions:
1- Selectable minimum bar body size. Example: There is a bear body above m.a., but is just 3 pips tall, so it is a doji and the order will not be opened.
2- If sell, cannot have a higher sell order open.
3- If buy, cannot have a lower buy order open.
4- If sell or buy, there must be a minimum range between the last order open and the new close (plus spread) to be set. For example: between last order and new close there is just 5 pips, then the order is not to be open.
5- sl and tp are set based on max/min range of the bar that the trade was open + momentaneous spread. Example: Bar max/min = to 25 pips. The sl will be 25+spread and tp also 25 + spread.
6- Must have a selectable max. price range for sl/tp. Example: bar has 100 pips range, but would set 50 pips maximum. (it will depend on the timeframe...thats why)
7- If there is a order open, the next order will use a factor. Example: 1.5 x lot of last order. This will happen for all next orders.
8- Need to count the sequence of losses. As soon the last close trade was profitable paying all the last losses, then the lot size must get back to the original initial lot size.
9- Set maximum loss to account %
Overview of the selections to be set by the user:
1- initial lot size
2- martingale factor
2- m.a. period
3- max range for sl/tp (remember that spread will be added to this account later in the robot)
4- min range for bar body
5- min range between last order open and new close.
6- Max loss to account % - shut down (if possible)