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

Re: [amibroker] Re: One trade a day and time frame - problem



PureBytes Links

Trading Reference Links




Hallo all 
:-)
<SPAN 
class=140253808-03072004> 
I am trying to back 
test the concept of buying the High/Low break-out of the previous day's price on 
a 15min chart such as the one below.  I have constructed the following 
formula, but something is clearly wrong with the results.
<SPAN 
class=140253808-03072004> 
Sometimes it does 
buy at the break-out, but also just a bit before, see the graph for an 
example.  It is as if  the day end and beginning of the 15min 
chart does not coincide with the daily High/Low, I think !
<SPAN 
class=140253808-03072004> 
The entry of the 
first green arrow is clearly wrong, although the second one is 100% 
correct.
<SPAN 
class=140253808-03072004> 
If there is any one 
out there that has tried this before or can show me my error I would greatly 
appreciate it !!!
<SPAN 
class=140253808-03072004> 
Kind 
regards,
<SPAN 
class=140253808-03072004> 
<SPAN 
class=140253808-03072004>Louw
<SPAN 
class=140253808-03072004> 
The 
formula I am using:
 
TickSize=<FONT 
color=#ff00ff>0.0001;
TradeLong = H > <FONT 
color=#0000ff>TimeFrameGetPrice( "H", 
inDaily, -1 );
TradeShort = L < <FONT 
color=#0000ff>TimeFrameGetPrice( "L", 
inDaily, -1 );
BuyPrice= <FONT 
color=#0000ff>TimeFrameGetPrice( "H", inDaily, 
-1);
ShortPrice = <FONT 
color=#0000ff>TimeFrameGetPrice( "L", inDaily, 
-1 );
NumContracts = <FONT 
color=#ff00ff>1;
PositionSize = NumContracts * 
MarginDeposit;
PointValue =<FONT 
color=#ff00ff>1;
Buy = tradelong;
Sell=0;
Short = tradeshort;
Cover=<FONT 
color=#ff00ff>0;
//<FONT face=Arial 
size=2>ApplyStop( type, mode, amount, exitatstop, volatile = False, ReEntryDelay 
= 0 ) 
ApplyStop<FONT 
face=Arial size=2>( stopTypeProfit, stopModePoint, 0.0030, 
1,False,20 ); 
ApplyStop<FONT 
face=Arial size=2>( stopTypeLoss, stopModePoint, 0.0027, 
True );
 
 
<IMG alt="" hspace=0 src="jpg00082.jpg" align=baseline 
border=0> has notified the sender that this message has been received.


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.






Attachment: Description: ""