仕事が完了した
指定
Note: EA must be able to handle both USD and JPY base currency account.
EA opens pre-determined 2 positions simultaneously. Those 2 positions are always different pairs and different directions. For example, once loaded on the chart, EA immediately opens GBPUSD short and EURUSD long.
Pairs and directions are determined by the following parameters.
Pair1:
Pair1 L/S: Long or Short (pulldown selection)
Pair2
Pair2 L/S: Long or Short (pulldown selection)
Pairs must match the pairs listed on the Market Watch window, including any prefix and suffix.
Lots:
Lots parameter determines the trading lots. If set as 1.02, EA opens both positions with 1.02 lots. For example, GBPUSD short 1.02 lots and EURUSD long 1.02 lots, the total of 2.04 lots.
Price Distance:
EA opens the second set of 2 positions for the same pairs and in the same directions once the negative profit reaches this amount. For example, if Price Distance was set as 1500, and the profit reached -1500 (floating loss of 1500 JPY), EA opens GBPUSD short 1.02 lots and EURUSD long 1.02 lots (Lots are the same with the Lot parameter).
Once the floating balance reaches -3000 JPY for the first set of positions, EA opens the third set of 2 positions. At this point, the actual floating loss is -4500 (-3000 for the first set, and -1500 for the second set). EA always calculates the floating loss of the first set only.
EA opens the forth set of positions once the floating loss of the first pair reaches -4500. At this point, the actual floating loss is -9000 JPY (-4500 for the first set, -3000 for the second set, and -1500 for the third).
Note: above examples are given for JPY base currency account. EA must be able to handle USD base currency account as well. For example, if the base currency is in USD, 15 means 15 USD, meaning if the floating loss reaches -15 USD, EA opens next set of pairs.
Max set:
This determines the maximum number of sets. If set as 5, EA opens no more than 5 sets (the total of 10 positions).
EA doesn’t close any position. I have another EA to control the closure in profit or loss all at once. Once all positions are closed (by another EA that I own), EA opens no positions until it's deleted from the chart and loaded again.