Compile it under the Old Compiler.
===============================
If you want to compile with New Compile:
Fix the Sepecial Characters like the ? and .
===============================
If you're not a programmer then contact the maker.
Your else is part of the if(OrderSelect | if(ticket>0) { And next time use SRC to post code and get it colored.if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)) { b3=ticket; Print(ticket); } else Print("Error Opening BuyStop Order: ",GetLastError()); return(0); } } } } |
Rewrite | if(ticket<0) Print("Error Opening SellStop Order: ",GetLastError()); else if(!OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)) Print("Error selecting SellStop Order: ",GetLastError()); else{ s1=ticket; Print(ticket); } return(0); } } } |
OK, off topic - a bit.
I don't understand that myself: Sometimes the source-code is nicely colored - sometimes not - do you know why?
There is nothing else here available than SRC that creates this (his) kind of box.
Gooly
I don't understand that myself: Sometimes the source-code is nicely colored - sometimes not - do you know why?
There is nothing else here available than SRC that creates this (his) kind of box.
Gooly
There is this . . .
But I don't think that was what was used.
There is this . . .
But I don't think that was what was used.
hmm - still don't understand :(
It's actually too big to fit in a SRC box . . . it goes in because the first few lines confuses the Forum . . .
//+------------------------------------------------------------------+ //| Envelope.mq4 | //| Copyright © 2005,tageiger aka fxid10t@yahoo.com | //| http://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "Copyright © 2005,tageiger aka fxid10t@yahoo.com" #property link "http://www.metaquotes.net"
if you fix this . . .
//+------------------------------------------------------------------+ //| Envelope.mq4 | //| Copyright © 2005,tageiger aka fxid10t@yahoo.com | //| http://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "Copyright © 2005,tageiger aka fxid10t@yahoo.com" #property link "http://www.metaquotes.net"
. . . the correct colouring is applied . . .
To get the pseudo SRC colour use the drop down for text styles . . . instead of Normal text use
Code
Your else is part of the if(OrderSelect | if(ticket>0) { And next time use SRC to post code and get it colored.if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)) { b3=ticket; Print(ticket); } else Print("Error Opening BuyStop Order: ",GetLastError()); return(0); } } } } |
Rewrite |
Thanks! I used SRC but I dont know why my code dint get coloured..
It's actually too big to fit in a SRC box . . . it goes in because the first few lines confuses the Forum . . .
if you fix this . . .
. . . the correct colouring is applied . . .
To get the pseudo SRC colour use the drop down for text styles . . . instead of Normal text use
Code
WHRoeder:
Your else is part of the if(OrderSelect | if(ticket>0) { And next time use SRC to post code and get it colored.if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)) { b3=ticket; Print(ticket); } else Print("Error Opening BuyStop Order: ",GetLastError()); return(0); } } } } |
Rewrite |
Thanks! I used SRC but I dont know why my code dint get coloured..
It's actually too big to fit in a SRC box . . . it goes in because the first few lines confuses the Forum . . .
if you fix this . . .
. . . the correct colouring is applied . . .
To get the pseudo SRC colour use the drop down for text styles . . . instead of Normal text use
Code
#property copyright "Copyright © 2005,tageiger aka fxid10t@yahoo.com"Join them and SRC works just fine:
//+------------------------------------------------------------------+ //| Envelope.mq4 | //| Copyright © 2005,tageiger aka fxid10t@yahoo.com | //| http://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "Copyright © 2005,tageiger aka fxid10t@yahoo.com" #property link "http://www.metaquotes.net" extern int EnvTimeFrame =5; //envelope time frame: 0=chart,60=1hr,240=4hr, etc. extern int EnvelopePeriod =144; //moving average length extern int EnvMaMethod =1; //0=sma,1=ema,2=smma,3=lwma. extern int MaShift =0; //shift relative to current bar indicator data is posted extern double EnvelopeDeviation =0.4; //envelope width <cut lines> return(fpTSL);}But the colorized version is too big to post.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Why this EA not working in my mt4?