--DOUBLE AGENT ROBOT DESCRIPTION --Overall description of the Robot The robot will have 2 agents. The Buy Agent and the Sell Agent. The Buy Agent always open Buy positions and the Sell Agent always opens Sell Positions. The Buy Agent opens a position with 0.01 lots, take profit at 10 PIPs, stop loss at 10 PIPs. If he loses, he doubles the position to 0.02 lots. If he loses, he doubles the position again, until he wins. When he wins, he resets the position to 0.01 lots. On the meantime, when the But Agent starts and loses 2 times, on the 3rd trade, the Sell Agent enters with 0.01 lots. Each time the Buy Agent keeps losing, the Sell Agent continues to open with 0.01 lots. When the Buy Agent wins, it means that the Sell Agent loses. In this case, the Sell Agent starts to double his position until he wins. And, while the Sell Agent continues to lose, the Buy Agent keeps opening positions of 0.01. And the cycle continues. --Notes and things to have in mind All trades opened by either the Buy Agent or Sell Agent are Market Orders. The position is opened from the point that the trade loses. E.g.: • Buy Agent opens a position of 0.01 Lots on EURUSD at 1.2300 with take profit at 1.2310 and stop loss at 1.2290. • The market goes to 1.2290 and Buy Agent loses. • Immediately, Buy Agent opens another trade of 0.02 Lots on EURUSD at 1.2290 with take profit at 1.2300 and stop loss at 1.2280. • And so on. Each of the Agents can be a Leader or a Follower. Explanation: • When Buy Agent starts the trade, then Buy Agent = Leader AND Sell Agent = Follower • When Buy Agent keeps losing and then he wins, he will become the Follower and Sell Agent will become the Leader. • So, an Agent is a Leader when he keeps losing, because he will keep multiplying the size of the positions. When he wins, he becomes the Follower and the other Agent becomes the Leader. I can choose whether the Buy Agent or Selling Agent will start first. ---INPUTS--- Variables Values --------- ------ -Currency Pair: Specifies on which currency pair the robot will execute its trades. E.g. EURUSD, EURJPY -Entry Price: Specifies the market price that when hit, the robot will open the first trade and start running -Buy Agent: 1 -Sell Agent: 2 -Starting Agent 1 or 2. If 1 then Buy Agent makes the first trade and is the Leader and Sell Agent is the Follower If 2 then Sell Agent makes the first trade and is the Leader and Buy Agent is the Follower. -Number of consecutive losing trades of Starting Agent before second agent starts: 1 = 1 lost trade 2 = 2 consecutive lost trades 3 = 3 consecutive lost trades Etc. Example: If Starting Agent = 1 and this parameter = 2. Then, Buy Agent starts the trades. When Buy Agent loses 2 times, then the Sell Agent starts entering trades. -Take Profit PIPs (TPP): N Number of PIPs. e.g. if this = 10, then Take Profit will be at 10 PIPs -Stop Loss PIPs (SLP): N Number of PIPs. e.g. if this = 10, then Stop Loss will be at 10 PIPs -Use Trailing: True, False If True, then the trades will take Trailing into consideration. If False then no Trailing Stop will be used. -Trailing Stop Start: n PIPs Only used, then Use Trailing = True -Trailing Stop Distance: n PIPs Only used, then Use Trailing = True -Leader Starting Size in Lots: Number with 2 decimal values. E.g. 0.01, 0.015, etc. -Follower Starting Size in Lots: Number with 2 decimal values. E.g. 0.01, 0.015, etc. -Leader Lot Multiplier Factor: Number with 1 decimal value (e.g.2.5) E.g. if this = 2, then if Leader Starting Size in Lots = 0.01, then it will go like this: 0.01, 0.02, 0.04, 0.08, etc. -Follower Lot Multiplier Factor: Number with 1 decimal value (e.g.2.5) E.g. if this = 2, then if Follower Starting Size in Lots = 0.01, then it will go like this: 0.01, 0.02, 0.04, 0.08, etc.