PureBytes Links
Trading Reference Links
|
<SPAN
class=359511702-06072004>H<SPAN
class=359511702-06072004>ow is it that the
program on the day of entry interprets the code as intended and generates the
buy signal based on the code rules here but AS SOON AS THE SIGNAL IS
GENERATED apparently the program then chnages values for the variables
and no longer uses teh same values for the variuables?? How will I ever know
if it is working correctly?
Now this will find the LOWEST LOW in the last 20 days and the
highest High since that date.All signals are generated on chart
correctly to show the buy and sel ldays based on this code. ie when price
breaks the highest high (PMH) entry is made so code is referenceing the
valuewhen function corectly.Now, when I look at the actual buy and
sell prices obtained it fails to reference the correct values for PMH
and looks like it is taking the value of the high from the day before the
entry.
I feel I am about to scream with chasing my self round in
circles all week!!
DaysML = Ref(LLVBars(L, 20), -1); //finds the
number of days since the lowest low within last 20 daysDaysMH =
Ref(HHVBars(H, DaysML), -1); //finds teh highest high since the lowest low
datePML = ValueWhen(LLVBars(L, Ref(n, -1)), L, 1); //finds the
value of low at lowest low datePMH = ValueWhen(HHVBars(H, Ref(DaysML,
-1)), H, 1); //finds the value of high at highest high dateCond10
= H > PMH; //Enter when High of highest day is
brokenBuy = Cond10;BuyPrice = Max(PMH + 0.01, O); //Buy
Price criteria Buys at 1 cent break of Highest price in last (daysML) number
of daysSell = Cross(Ref(LLV(L, 4), -1), L); //sells at break of lowest
low in last 4 daysSellPrice = C; //sells at close price of day of
breakBuy = ExRem(Buy, Sell);SetTradeDelays(0, 0, 0,
0);Check AmiBroker web page at:<A
href="">http://www.amibroker.com/Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|