You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
If I comment Print("test") line than loop "for" will not work.
Why?
It was working a OK on 195;
I have Build 196; 7, September 2006
Substituting Print("test") call with a call to dummy() function will work too.
void dummy()
{
}
//+------------------------------------------------------------------+ //| test1.mq4 | //| Copyright © 2006, MetaQuotes Software Corp. | //| https://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "Copyright © 2006, MetaQuotes Software Corp." #property link "https://www.metaquotes.net" #property indicator_separate_window int j, all; int cnt=0; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { //---- all=1; j=cnt; Print("test"); for(cnt=j; cnt<j+all; cnt++) { Print("j=",j," cnt=",cnt," all=",all); } //---- return(0); } //+------------------------------------------------------------------+