Работа завершена
Техническое задание
"This will be a "Hedging EA."
FEATURES will be:
* Lines drawn
* Pending orders
* Comments
* & the closing of positions
**** Semi Automated Trading *****
1st... We would like to draw a "GREEN line" under or, above the current price at that time (candlestick)... and have the rest of our parameters set automatically. (If the "line" is black or any other color... we want nothing to happen BUT, if it is changed to GREEN, we want parameters to be set) ... Parameters as followed:
* It will include 4 Lines (parameters) .... first line will be placed by us (entry) "GREEN line"
* Second line will be (draw down) "RED line" ... @ what ever we chose it to be in the settings (example '50')
* Third line will be (entry's TARGET) for first "GREEN line" (thicker line)... @ what ever we chose it to be in the settings too.
* & Fourth line will be the (TARGET to the opposite side of original entry), also a "RED line" (but, thicker line)... @ what ever we chose it to be in the settings as well.
2nd... We would like a Pending to be automatically set, according to the draw-down specified in the EA's settings <at the beginning of the EA's set up> (50 pips or less) [If it is set at 50 pips draw-down, A pending will be set to go the opposite way.
... right after the first "GREEN entry line" has been placed.... with the Pending's lot size selected in the EA's settings as well.
.... If that "draw-down/RECOVERY pending" has been touched, we would like another pending to automatically be set right away at the original ENTRY point... Pendings will keep being set for a position If, the price gets-to/ touches the draw-down price point (an opposite pending will be automatically set at the original ENTRY point)..... & If, the price gets-to/touches the original price point (an opposite pending will be automatically set at the draw-down point) This will go on, and on. Until, one of the Target areas has been reached! (To the "ENTRY side" OR, to the "RECOVERY side")
More specifically.... When the Pending is set for the first "ENTRY" Pending, after the GREEN line has been placed, we would like it to have a few details in the COMMENTS; Date, time (according to our laptop's time) & labeled as "ENTRY"
When the other "RECOVERY" Pendings are set... up to 10... heck, make it 20 just in-case we want to experiment with some things, OK ... We would like them to be labeled as "RECOVERY" also, including Date & our time (laptop time, which ever laptop or device we are using when placing the order) in the COMMENTS area/section/box.
The last feature we would like, is for the EA to close all positions, of "THAT pair" of which TARGET got hit... example (EUR/USD) 3 positions .... 1 entry and 2 recovery positions... ALL 3 CLOSE, at the same time! (Identified by the ENTRY & RECOVERY labels) in the COMMENTS area on each ticket order.
... Sometimes the market will go your way. Sometimes it will go against you to the opposite way, and sometimes it will go against you the opposite way then, turn back around and continue the original way.... You can even catch your self in a situation where the price just ping pongs back and forth, sometime up to 6 - 7 times... we just want to be prepared for 10 or 20 Recoveries just in-case, also for some testing purposes.
..............................................................................................................................................................................
**Semi-Automated Trading/Manual trading** equals = Manually finding ENTRIES by placing the "GREEN line" and having the parameters set automatically BUT, NO AUTOMATICALLY finding entries.
**Automated Trading** equals = Pairs to Automatically trade, chosen in the Settings Area [[Default PAIRS = AUD/USD | EUR/JPY | EUR/USD | GBP/AUD | GBP/USD | GBP/JPY | NZD/USD | USD/CAD | USD/CHF | USD/JPY]]
...............................................................................................................................................................................
**AUTOMATED TRADING STRATEGY #1 = whatever the DAILY Candle is (RED or WHITE) on the Heiken Ashi candle, <-- criteria #1 ... it must be the same color for the 1HOUR chart's Candle <-- criteria #2 ....
So, if the Daily Candle is RED... on the hour chart, the most recent candle, must also be RED, & BELOW the 20 period EMA (Exponential Moving Average) <-- criteria #3 .... AND vice versa...
If the Daily candle is WHT... on the hour chart, the most recent candle must also be WHT & ABOVE the 20 period EMA (Exponential Moving Average)...
Then, after these (3) criteria are met there should be a Pending set for ENTRY on the 15min chart, once a candle develops which is in the direction of the Daily and Hour Candle.
**AUTOMATED TRADING STRATEGY #2 = Once PRICE CROSSES and closes above or, below the 20 period EMA (Expenential Moving Average) on the 1 HOUR Chart... Look for ENTRY on the 15 minute chart... depending on the direction of the cross... will illustrate if the pending shall be set above or below the 15 minute CANDLE.