Thread: How to code?
View Single Post
  #1009 (permalink)  
Old 06-10-2008, 05:55 PM
IN10TION's Avatar
IN10TION IN10TION is offline
Senior Member
 
Join Date: Mar 2007
Posts: 569
Blog Entries: 1
IN10TION is on a distinguished road
I can't explain more if I don't see more...
but you have to follow the basics...


double a=iCustom(indiA);
double b=iCustum(indiB);
double c=iCustom(indiC);

int ORDer=0;

if( a==1 && b>0 && c!=0 ) ORDer=1;
if( a==-1 && b<0 && c!=0 ) ORDer=-1;

if(ORDer==1) BUY();
if(ORDer==-1) SELL();


Quote:
Originally Posted by payback View Post
mmmm please explain more about this
also i tried boolean and if() but at a first look didn't work
Reply With Quote