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

Re:EL CODE NEED HELP



PureBytes Links

Trading Reference Links

Try
If Close > Open Then Buy;
If MarketPosition = 1 Then Begin
Sell EntryPrice + 1000 Points Stop;  
End;

Leave off the division as the prices are relative and if you divide the entry
price you are getting 1/10 of the entry price as it was already the result of /
by 100. What you may need to change is the 10 point stop as 100.50 + 10 = 110.50
whereas 10050 + 10 = 10060. You need 10050 + 1000 = 11050. Move the decimal 2
places right in your stops or limits.  I think. 

"The darkest hour in any man's life is when he sits down to plan
 how to get money without earning it"

Sentinel Trading
rjbiii@xxxxxxxxx
____________________Reply Separator____________________
Subject: EL CODE NEED HELP
Author: Brent August
Date:  2/8/99 10:23 AM

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