Check Profit(period of time) help
-
I'm trying to make an EA that has two trading periods per day, that it takes trades until "X" amount of profit is made in THAT time period.
I am using the block "Check Profit (period of time)"
As I understand it, it should draw a green line for the entire first session and a red line for the entire second session, as the "Test" EA does not take any trades, so the profit is under the set <lower than profit target. and no line that is outside of both of the two session time frames.
When I run it in the mt4 Strategy Tester it draws a red line for a whole day of only one day of the month long test.
I'm confused, and I'm sure doing something wrong. can anyone point me in the right direction. Thx
-
You need many more blocks to draw lines when you want, this just checks profit. then if enough will draw a random line. To draw a line on the times inside a draw block put the time of when you want it drawn
-
Hey jstap, thanks for the reply.
I'm not sure if I understand what your saying. This EA is to test the functionally of the "Check Profit (period of time)" block.
The draw block time is set to now. "Once per Candle" (Time candle 0) if "Check Profit" block time and conditions are met, it should draw once per candle in the selected time period of the Check Profit block. -
As is as soon as reaching the profit if with in the range it will draw a line, I assume this is not what you want it to do?
-
My goal is to have from 07:30 to 19:00 the block to pass if $2000 has not been made in that time period. and to not pass if $2000 profit has been made.