Tarea técnica
EA is for the Brazilian Stock market, to operate Stocks (Papers) and Futures (Indice / IBOV).
The idea is (image attached):
Action - Order [BUY] or [SELL] of X amount will be issued once a line (specific price) is crossed.
> I'll manually set the Line (price) every time.
What are the options and conditions:
1 - Order will be placed only between a specific time to be chosen.
1.1 - When the time window closes, the order will not be placed anymore.
2 - Order will be placed only if Opening Price is [LOWER] or [HIGHER] than the line (specific price) placed.
3 - If Order is open, by a specific time the order needs to be closed (doesn't matter if it is a loss or a gain), option to be a Day Trade.
3.1 - Ready the book, and closes using "1st price" (market).
4 - [ STOP GAIN 1 ] and [ STOP GAIN 2 ] and [ STOP LOSS ] needs to be chosen.
4.1 - Stop gain 1 and 2 could be equal.
4.2 - Have Stop Trailing, Break Even if STOP GAIN 1 is executed.
Example A (image attached), Day 1.
Buy Order to be placed if Line is crossed, if Opening Price is Lower then Line to be crossed, if the line is crossed between 10 am to 10:20 am.
In this example, the Order wouldn't be executed because the opening price was higher than Line to be crossed.
Example B, Day 7.
Buy Order to be placed if Line is crossed, if Opening Price is Lower then Line to be crossed, if the line is crossed between 10 am to 10:20 am.
In this example, Order would be executed because line was crossed at 10:10 am and would likely be a STOP LOSS.
Example C, Day 2 (using the same line as Example A)
Buy Order to be placed if Line is crossed, if Opening Price is Lower then Line to be crossed, if the line is crossed between 10 am to 4 pm.
In this example, Order would be executed because the opening price was lower than Line to be crossed, the line was crossed inside the chosen time, and could be a STOP GAIN or a LOSS.
Example D, Day 4
Sell Order to be placed if Line is crossed, if Opening Price is Lower then Line to be crossed, if the line is crossed between 2 pm to 4 pm.
In this example, Order would be executed because opening price was lower than Line to be crossed, would likely be a STOP GAIN.