Has this problem only become apparent today?
Evening, I'm guessing.
Your spiral only gets drawn on a new tick. If the market is closed, no ticks so the spiral doesn't get redrawn.
The indicator needs some updating, but a quick fix would be to add this snippet:
const long &lparam,
const double &dparam,
const string &sparam)
{
if(sparam==FX5_Square && id==CHARTEVENT_OBJECT_DRAG)
{
DeleteSpiral();
DrawSpiral();
}
}
Evening, I'm guessing.
Your spiral only gets drawn on a new tick. If the market is closed, no ticks so the spiral doesn't get redrawn.
The indicator needs some updating, but a quick fix would be to add this snippet:
const long &lparam,
const double &dparam,
const string &sparam)
{
if(sparam==FX5_Square && id==CHARTEVENT_OBJECT_DRAG)
{
DeleteSpiral();
DrawSpiral();
}
}
You are correct it was last night, but I could have sworn I'd used it for analysis when the market was closed previously. Most appreciated in advance, I'll give it a go and update here.
Hi there
I opened mq4 with a text editor, am I correct adding to the end as below. Apologies, I don't have programming experience.
For example text would begin on line 199 (after the separator):
//+------------------------------------------------------------------+
void OnChartEvent(const int id,
const long &lparam,const double &dparam,
const string &sparam)
{
if(sparam==FX5_Square && id==CHARTEVENT_OBJECT_DRAG)
{
DeleteSpiral();
DrawSpiral();
}
}
//+------------------------------------------------------------------+
The file I attached at the bottom of my last post was modified, so you should be able to use that.
But yes, it would work pasted in at line 199.
Hi there
I opened mq4 with a text editor, am I correct adding to the end as below. Apologies, I don't have programming experience.
For example text would begin on line 199 (after the separator):
//+------------------------------------------------------------------+
void OnChartEvent(const int id,
const long &lparam,const double &dparam,
const string &sparam)
{
if(sparam==FX5_Square && id==CHARTEVENT_OBJECT_DRAG)
{
DeleteSpiral();
DrawSpiral();
}
}
//+------------------------------------------------------------------+
Good morning, I just tried out your modified file (although the market is closed) and it works perfectly as before. I'm so pleased as I'd messed about for hours trying to figure it out, don't know how to thank you :)
Glad it works. Throw a few coins in the next charity bucket you see and we'll call it even ;-)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I love this thing, and until recently it was working great(nothing changed and nothing was added to mt4 to make it play up).
It seems to have developed a problem with moving where the centre box is. It doesn't matter how you drag the box, the spiral doesn't follow. I tried to contact the developer but the inbox is full.
I've attached the files. If anyone can help, I'm more than happy to donate.