Thanks I will give it a try
Posts made by mlnaumann
-
RE: Execute MQL4 Script from EA in fxDreemaposted in General Discussions
-
Execute MQL4 Script from EA in fxDreemaposted in General Discussions
Hi all,
Is there a way to run a custom MQL4 script from an EA in fxDreema?
I’d like to use the Time Filter (Once per Bar) block to trigger something like CloseAllChart.mq4.
Also, I’m trying to set up a scheduler that automatically opens 5 charts and closes 5 charts once a month. Ideally, this would be handled directly in fxDreema or by triggering an external script.
Has anyone done something similar or found a good workaround?
Thanks!
-
RE: Help with Automated Template Loading for Open Charts in MT4posted in General Discussions
"Thanks for your reply. I’ve tried using 'Apply Template' in many different ways, as well as all the other forum suggestions — still no luck. I’m wondering if it’s a folder property issue. If anyone has a simple working process, I’d like to test it on my PC to pinpoint where the problem is."
Thanks,
MarkO -
Help with Automated Template Loading for Open Charts in MT4posted in General Discussions
Hi all,
Has anyone successfully automated the process of loading templates onto multiple open charts in MT4?
I've read through many suggestions on this forum and tried several approaches, but haven’t found a working solution. I had ChatGPT generate a script that opens three charts and applies a template to each, but the templates fail to load.
ChatGPT reviewed the code and confirmed it’s syntactically correct. However, it also pointed out that the issue may be due to the Templates folder being set to “read-only” (as seen via File -> Open Data Folder -> templates -> Properties). This could be preventing the templates from being applied.
Has anyone figured out a reliable method to open multiple charts and apply a specific template to each one successfully?
Here’s a simplified snippet of the code I’m using to apply the template:
mq4
Copy
Edit
#property strictvoid OnStart()
{
string templateName = "MarkO";
string path = TerminalInfoString(TERMINAL_DATA_PATH) + "\templates\" + templateName + ".tpl";if (!FileIsExist(path))
{
Print("Template not found at: ", path);
return;
}if (!ChartApplyTemplate(ChartID(), templateName))
Print("Failed to apply template to current chart.");
else
Print("Template applied to current chart.");
}
Any ideas or working examples would be much appreciated.Thanks,
MarkO -
RE: Auto Trader working with Current/Historical Dataposted in General Discussions
I use the MT4 Oanda AutoTrading to execute my trades.
-
RE: Auto Trader working with Current/Historical Dataposted in General Discussions
Thanks! I'm trying to figure out why the Auto Trader isn't executing my trades. The EA works fine in the Strategy Tester, but when I load it into the Auto Trader, the trades fail to execute.
-
Auto Trader working with Current/Historical Dataposted in General Discussions
If the condition "Candle ID 5 > Candle ID 3" is met, does the Auto Trader on MT4 need to run for 5 days before it can execute a buy or sell trade? Additionally, does the Auto Trader only execute trades based on future conditions as they are met, or can MT4 compare historical data (e.g., Candle ID 5 with Candle ID 3) to make a decision if the program is loaded today, for example?
-
Time Filter Questionposted in Questions & Answers
I have 5 trades to execute at 6:00 AM, is it better to place this on the Daily Timer or Hourly Timer, or something else? The reason I ask is I have 5 different currencies on the Daily Timer, and 3 executed of the 5 currency pairs. Should I be using a different Time Filter?

-
“Once a day” Not working for me in MT4posted in General Discussions
“Once a day” Time Filter works for me on the MT4 tester perfectly, but when I use it live the EA will not execute the trade. I placed on the AE program on the 1 Day graph.
My question, let say I want to buy at 6:00 AM. Which time process is the most appropriate to use “Once A day”, “Time Filter” or some other. In addition, if I want to execute at 6:00 AM which time frame graph would be the best to place my AE on: hourly, daily? -
How long is a X> active?posted in Questions & Answers
I’m trying to figure out the following when using the Once A Day Timer: if a moving average crosses another moving average (5 Day X> 20 Day = BUY) on July 1 then is the trade executed for a profit or loss on July 10? Now on July 11 will the July 1 (5 Day X> 20 Day) execute again, or does a new (5 Day X> 20 Day) have to occur?
It seems like the July1 condition is still active. Is there a way to only allow for new (5 Day X> 20 Day = BUY) execute only once?
NoTrade->Condition->OnceADayTimerFilter->Buy -
Basic Question: How to control One EUR/USD Buy Or Sell at a timeposted in Questions & Answers
I like to work with six pairs, so I should never have more than 6 pairs trades at a time. Sometime my condition can be hit more than once, and I don’t want another EUR/USD trade.
For example, If I currently have a trade of Buy for EUR/USD how do control/filter no more Buy will be executed for EUR/USD because I already have a trade executed a few day earlier?
I have something like NoTrade->Condtion->OnceADay->CloseTrades->BuyNow