PureBytes Links
Trading Reference Links
|
Hi All,
I have been trying to convert a system I am using on VT-Trader (Which I think is similar to Metastock code) to Amibroker but I am unable to get my head around the looping stuff in regards to the PREV function. I just cannot get it to work the way it should. I have tried everything but no matter what I do it doesn't work right and grinds my computer to a halt.
Can anyone please help me?
This is the VT code
{RGM Master Trading System}
RGM_Power_Line_Setup:= (Wilders(ATR(30),24)*2.824);
RGM_Power_Line:= If(BarCount()>(30+24),
If(Ref(C,-1)>PREV(0) AND C>PREV(0),Max(PREV(0),C-RGM_Power_Line_Setup),
If(Ref(C,-1)<PREV(0) AND C<PREV(0),Min(PREV(0),C+RGM_Power_Line_Setup),
If(Cross(C,PREV(0)),C-RGM_Power_Line_Setup,
If(Cross(PREV(0),C),C+RGM_Power_Line_Setup,
If(C=PREV(0),PREV(0),PREV(0)))))),
NULL);
Thank You
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
amibroker-digest@xxxxxxxxxxxxxxx
amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|