PureBytes Links
Trading Reference Links
|
Hello, i want to program an intraday stop-and-reversal system on
10min Data.
The reversal idea is: go long if stoplossShort is triggert, go short
if stoplossBuy is triggert, but in the 2nd row of following code
stoplossShort isn't defined with any value.
What's the solving method?
risk=8/32;
Buy = Cross(H,stoplossShort);
BuyPrice=ValueWhen(Buy,stoplossShort);
Short = Cross(stoplossBuy,L);
ShortPrice=ValueWhen(Short,stoplossBuy);
sell=0;
cover=0;
stoplossBuy=BuyPrice-risk;
stoplossShort=ShortPrice+risk;
Thanks for help!
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
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:
http://docs.yahoo.com/info/terms/
|