You would generate a trade Signal for each time frame and combine them TFrame1_Buy = your conditions; // based on TFrame1 indicators TFrame2_Buy = Your conditions; // based on TFrame2 indicators
Buy = TFrame1_Buy and TFrame2_Buy; etc ----- Original Message ----- From: Antonio Jordao Jr To: [email protected] Sent: Sunday, February 14, 2010 4:50 PM Subject: Re: [amibroker] Multiple time frames That is ok for me. My concerns are on how to tell the low frame to buy when the high frame is not sold and how to tell it to sell when the other is not bought. Regards Antonio From: Ara Kaloustian Sent: Sunday, February 14, 2010 7:14 PM To: [email protected] Subject: Re: [amibroker] Multiple time frames You can create indicators in any time frame and make decisions based on those. See TimeFrameSet() function ----- Original Message ----- From: Antonio Jordao Jr To: [email protected] Sent: Sunday, February 14, 2010 12:37 PM Subject: [amibroker] Multiple time frames Hi all, I am trying to convert a trading system I used in another tradestation to Amibroker. It is a multiframe system, that uses a higher frame (30min) to allow a lower frame (5min) to enter the trades. Let's call the higher frame system TRIGGER. It works like this: the lower frame goes LONG if the higher is NOT SOLD, and goes SHORT if the long is not BOUGHT. The BUY code would be like this: BUY=SA(Series,P1,0) > SA(Series,P2,0) And ExitBuy('TRIGGER',Close)=0 Is there anyway to code this inside the Amibroker? Regards Antonio
