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

RE : [amibroker] Drawn Trendline crossover



PureBytes Links

Trading Reference Links

Thank you very much, saved me a lot of time.

 

Had to use fixed value instead of GetChartID(), which returns 0 in a scan :

 

Buy = Cross(CCI(14), Study("RE",1010 ));

Sell = Cross(CCI(14), Study("SU",1010 ));

 

 

Regards,

 

AL,

 

-----Message d'origine-----
De : amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] De la part de Tomasz Janeczko
Envoyé : dimanche 27 novembre 2005 10:53
À : amibroker@xxxxxxxxxxxxxxx
Objet : Re: [amibroker] Drawn Trendline crossover

 

Hello,

 

Please read the documentation on Study

 

especially about CHARTID (second) parameter which you haven't supplied and that's why it can not work.

 

CHARTID - identifies the chart pane where the study was drawn - you can find out what is the chart ID for given chart by looking in Parameters dialog, Axes & Grid, Miscellaneous: Chart ID or using GetChartID() AFL function.


Best regards,
Tomasz Janeczko
amibroker.com

----- Original Message -----

From: amartinod

Sent: Sunday, November 27, 2005 10:11 AM

Subject: [amibroker] Drawn Trendline crossover

 

Hello,

 

Could make it work (detected by a scan)  :

------------------------------

 

1-       Draw manually a trendline on the price chart,

2-       Detect automatically a crossover of that trendline :

 

Buy = Cross(C, Study("RE") );

Sell = Cross(C, Study("SU"));

 

(RE ou SU = Trendline drawn by hand).

 

 

Could not make it work (not detected by a scan) :

----------------------------------

1-       Draw manually a trendline on the indicator window,

2-       Detect automatically a crossover of that trendline :

 

Buy = Cross(CCI(14), Study("RE") );

Sell = Cross(CCI(14), Study("SU"));

 

Would appreciate any help to detect automatically a crossover of the drawn indicator trendline,

 

AL,



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