Hello everyone,
I'm working on building an Expert Advisor in fxDreema and could use some guidance from the community. I'm trying to create a simple breakout strategy based on the previous hour's price action.
The Strategy Logic:
At the start of every new hour, the EA should capture and store the High, Low, and Close prices of the hour that just finished.
During the current hour, if the price breaks above the stored previous hour's high, it should enter a BUY trade.
If the price breaks below the stored previous hour's low, it should enter a SELL trade.
This logic should repeat every single hour.
My Specific Problem:
I'm getting stuck on the correct way to store the previous hour's price data. I've tried using the Modify Variable block triggered by a Once Per Bar block (set to 1-hour), but I'm not confident my setup is correct to capture the data from the previous hour rather than the current one.
The variables I've set up are: PrevHourHigh, PrevHourLow, and PrevHourClose.
What I've Tried:
I connected a Once Per Bar block to three Modify Variable blocks.
What I Need Help With:
Is using a Once Per Bar (1-hour) block the right way to trigger the storage of the previous hour's data? If not, what should I use instead?
In the Modify Variable block, what is the exact configuration to store the price data? For PrevHourHigh, do I select Market Properties -> Highest or something else?
If anyone has a simple fxDreema flowchart or shared project that does something similar, that would be incredibly helpful as a reference.
I've been looking for solutions but haven't found a clear answer for this specific scenario. Any help, screenshots, or examples you can provide would be greatly appreciated. I'm also happy to share my current setup for more context.
Thanks in advance for your time and assistance!