[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EL CODE NEED HELP AND THE ANSWER IS



PureBytes Links

Trading Reference Links

> THANKS TO ALLWHO TRIED TO HELP.
> BUT I MUST GIVE CREDIT WHERE CREDIT IS DUE.
> I GOT THROUGT TO MANNY AT O.R. E.L DEPT.
> THE SECOND LINE OF CODE SHOULD READ--
>   IF CLOSE/100>OPEN/100 AND MARKETPOSITION=1 THEN SELL
>   ENTRYPRICE+10 STOP;

WRONG !

~~~~~~~~
if c >o then buy;
if c >o then sell entryprice +10 stop;
~~~~~~~~

this DOES work on my DBC data !!!! 

OFCOURSE NO need to tell: AND MARKETPOSITION = 1

BUT as you said the 2nd line is a STOP GAIN and not a STOP LOSS I assume 
that you just want to EXIT the long and not REVERSE to short, which you would 
do with BOTH above codes

so THAT code would be:

~~~~~~~~
if c >o then buy;
if c >o then exitlong entryprice +10 stop;
~~~~~~~~

........sorry, but no idea what you have to do or dont with FS datafeed

rgds hans



 
> THANKS TO ALL-- END OF THIS PROBLEM ON TO THE NEXT ONE.
> BRENT
> Brent August wrote:
> 
> > THIS IS MY CODE
> >
> > if c/100>o/100 then buy;
> > if c/100>>o/100 then sell entryprice/100+10 stop;
> >
> > I  DIVIDE BY 100 BECAUSE I USE FUTURE SOURCE AS A DATA PROVIDER
> > AND THEY SEND PRICES WITHOUT DECIMAL POINT.
> >
> > THE FIRST LINE WORKS -- I GET A BUY.
> >
> > BUT THE SECOND LINE OF CODE DOES NOT GET ME A SELL!!
> >
> > THE CODE DOES VERFIY.
> >
> > THANK YOU.
> >
> >  BRENT
>