Hello everyone. I have a multi time frame indicator which does not load in closed market. Actually starts painting when first tick arrives.
Do you have any idea? I can send you the code also.
my crystalball tells me that you may be using it on Oncalculate() function which only runs when market is open.
If you want more details without using crystalball, kindly show code.
Hello everyone. I have a multi time frame indicator which does not load in closed market. Actually starts painting when first tick arrives.
Do you have any idea? I can send you the code also.
Hello
Is there a condition that executes when prev_calculated is >0 ?
☕️ ⚽️
my crystalball tells me that you may be using it on Oncalculate() function which only runs when market is open.
If you want more details without using crystalball, kindly show code.
I think chatGPT has hijacked your crystal ball . OnCalculate() executes at least once with all the data available .
😇
Possibly twice, before a new tick.
- Terminal starts.
- Indicators/EAs are loaded. Static and globally declared variables are initialized. (Do not depend on a specific order.)
- OnInit is called.
- For indicators OnCalculate is called with any existing history.
- Human may have to enter password, connection to server begins.
- New history is received, OnCalculate called again.
- A new tick is received, OnCalculate/OnTick is called. Now TickValue, TimeCurrent, account information and prices are valid.
What do you mean by server related?
This is the source.
Okay, added a condition to run once so oncalculate fires once if true , i simplified an OCC_Shell indicator with 2 buffers high and low , and simplified the calls too to use buffers
0 or 1 (instead of up to 21) , it draws both on the limited oncalculate and the unlimited . i hope it helps even though i found nothing .
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello everyone. I have a multi time frame indicator which does not load in closed market. Actually starts painting when first tick arrives.
Do you have any idea? I can send you the code also.