I am very new to this language and grasp most of it but i am having trouble getting comments to output to my chart.
Here is my Code
void OnTick()
{
Comment("hello");
}
Ive checked the background color and tried different terminals and they all produce no outcome using Comment.
It is the weekend. If there are no new ticks, OnTick() will not be called.
Try it in OnInit().
I am very new to this language and grasp most of it but i am having trouble getting comments to output to my chart.
Here is my Code
void OnTick()
{
Comment("hello");
}
Ive checked the background color and tried different terminals and they all produce no outcome using Comment.
You could also call OnTick() from OnInit()
Thats quite handy if you have a lot of code in your OnTick function but you're not getting ticks, on the weekend ;)
\
void OnInit(){ OnTick(); } void OnTick(){ Comment(TimeCurrent()," ","hello"); }
- 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 am very new to this language and grasp most of it but i am having trouble getting comments to output to my chart.
Here is my Code
void OnTick()
{
Comment("hello");
}
Ive checked the background color and tried different terminals and they all produce no outcome using Comment.