PureBytes Links
Trading Reference Links
|
How can I assign a different position score for buy and short trades
within the same formula?
Current PS:
PositionScore =ValueWhen( Cross( PDI(n), MDI(n) ), RSI(n2), 0);
This works fine for buy orders, but not short orders. Need this PS
for short:
PositionScore =ValueWhen( Cross( PDI(n), MDI(n) ), 100-RSI(n2), 0);
But how do I build this into one formula?
Right now my short signals are being ranked based on the highest RSI,
but I need them ranked on lowest RSI.
Thanks,
John
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
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/
|