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

[amibroker] Multiple trendline studies for explore tests



PureBytes Links

Trading Reference Links

I am trying to get multiple  hand drawn studies on my chart showing 
arrows and then able to back test or explore the results without any 
luck. I am now just going around in circles and totally 
frustrated... any pointers on this snipet of code would be greatly 
appreciated

Thanks in advance

alphai = "";
TLBDN=0;
TLBUp=0;

for( i = 1; i < 27; i++ )
{
if (i==1) {alphai="A";}
if (i==2) {alphai="B";}
if (i==3) {alphai="C";}
if (i==4) {alphai="D";}if (i==5) {alphai="E";}if (i==6) {alphai="F";}
if (i==7) {alphai="G";}if (i==8) {alphai="H";}if (i==9) {alphai="I";}
if (i==10) {alphai="J";}if (i==11) {alphai="K";}if (i==12) 
{alphai="L";}
if (i==13) {alphai="M";}if (i==14) {alphai="N";}if (i==15) 
{alphai="O";}if (i==16) {alphai="P";}if (i==17) {alphai="Q";}if 
(i==18) {alphai="R";}
if (i==19) {alphai="S";}if (i==20) {alphai="T";}if (i==21) 
{alphai="U";}if (i==22) {alphai="V";}if (i==23) {alphai="W";}if 
(i==24) {alphai="X";}
if (i==25) {alphai="Y";}if (i==26) {alphai="Z";}


id="U";
id0=alphai ;
id2=(id+id0);

//if (id0 != ""){i=26;}

LinUp=Study(id2,GetChartID());

id="D"+alphai;
LinDn=Study(id,GetChartID());

TLBDN = Cross(LinDn,z);
TLBUP = Cross(CCI(14),LinUp);
}


PlotShapes( IIf
((TLBDN ),shapeDownArrow,shapeNone),colorDarkRed,0,Graph0,Offset=20);
PlotShapes( IIf
((TLBUP),shapeUpArrow,shapeNone),colorDarkGreen,0,Graph0,Offset=20);







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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/