Hi,

in AB Pro you can set only time frames of
    * in1Minute
    * in5Minute
    * in15Minute
    * inHourly

Please see http://www.amibroker.com/guide/afl/afl_view.php?id=242

 Perhaps you would switch your time frame from 45 to 60 minutes (use inHourly).

 Hope it helps : Mar.


----- Original Message ----- 
From: 
<sentto-1010692-137133-1239128118-dixit=myrealbox....@returns.groups.yahoo.com>
To: <[email protected]>
Sent: Tuesday, April 07, 2009 8:14 PM
Subject: [amibroker] Multitime frame AFL What is the mistake


| I want a multi time frame scan but getting errors,Please let me know the 
mistake
| 
| TimeFrameSet(in45Minutes);
| 
| StochK45=StochK(14,3);
| StochD45=StochD(14,3,3);
| TimeFrameRestore();
| 
| TimeFrameSet(in5Minute);
| 
| StochK5min=StochK(14,3);
| StochD5min=StochD(14,3,3);
| TimeFrameRestore();
| 
| Buy=(StochK45>StochD45)& Cross(StochK5min,StochD5min);
| Sell=(StochD45>StochK45)&Cross(StochD5min,StochK5min);
| 
| Errors:
| 
| 1) it is showing syntax error for 45 mins
| 
| 2) When I scan I am keeping the settings for 5 mins then it is showing Cross 
of 5 minutes stochastics & ignoring whether the 45 mins stochastics is above or 
below it's trigger


Reply via email to