Hi Guys,
I have read Mr Howard books which are really great and added very valuable insights about trading and amibroker programing.
If you are really serious then don't ignore his advise.
I also contacted him few times and he provided genuine help.
Thanks to Mr Howard and
sorry for posting a message which may cause some inconvenience to some of the member.
Market is really random don't take it very seriously. Just go with it.
Kishor S
Can I get help define the following AFL codes for my trading strategies:
LONG STRATEGY: (strategy 1)
i) check if the NIFTY (which is the NSE (India index) is in the fast and slow stochastic higher crossover zone and only then execute the LONG AFL code. i.e., NIFTY index FastK & SlowK are above their respective Fast and SlowD for long strategy to trigger in both 5 and 15 min ticks.
Buy if either fast or slow stochastics %K line cuts ABOVE its %D line (and) %K line of the other stochastic is ALSO ABOVE %D line of the other stochastic on both 5 min and 15 min ticks
Sell if if either fast or slow stochastics %K line cuts BELOW its %D line (and) %K line of the other stochastic is ALSO BELOW %D line of the other stochastic on both 5 min and 15 min ticks.
ii) square off at 5% profit or 3% stop loss from buying price.
SHORT Strategy 1
THE REVERSE OF ABOVE FOR SHORT STRATEGY
For Long(strategy2)
C= Condition
C1: PLUS DI > MINUS DI
C2: PLUS DI PREVIOUS < MINUS DI PREVIOUS
C3: ADX>25
C4: ADX>PLUS DI
For Short(strategy2)
C1:MINUS DI > PLUS DI
C2: MINUS DI PREVIOUS < PLUS DI PREVIOUS
C3: ADX>25
C4: ADX>MINUS DI
--------------------------------------------------------------------------------------------------------
For Long(strategy 3)
C1: PLUS DI > MINUS DI
C2: PLUS DI PREVIOUS < MINUS DI PREVIOUS
C3: ADX>25
C4: ADX>PLUS DI
C5: MACD>MACDSIGNAL
C6: MACD PREVIOUS < MACD SIGNAL PREVIOUS
C7: PSAR<LOW PRICE
C8: PSAR PREVIOUS > HIGH PRICE PREVIOUS
C9: LAST CLOSE PRICE > SUPERTREND
C10: LAST CLOSE PRICE PREVIOUS < SUPERTREND PREVIOUS
C11: MACD<0
For Short(strategy 3)
C1: MINUS DI > PLUS DI
C2: PLUS DI PREVIOUS > MINUS DI PREVIOUS
C3: ADX>25
C4: ADX>MINUS DI
C5: MACD<MACDSIGNAL
C6: MACD PREVIOUS > MACD SIGNAL PREVIOUS
C7: PSAR>HIGH PRICE
C8: PSAR PREVIOUS < LOW PRICE PREVIOUS
C9: LAST CLOSE PRICE < SUPERTREND
C10: LAST CLOSE PRICE PREVIOUS > SUPERTREND PREVIOUS
C11: MACD>0
For Long(strategy 4)
Buy
|
Sell
C3: ( RSI CURRENT < 70.0 AND RSI PREV > 70.0 ) AND ( MACD < MACD )
OR
Exit if Stop Loss changes by 3.0%
OR
Exit if Profit Target meets 5.0%
For SHORT (strategy 4)
Sell
C1 : NIFTY RSI CURRENT < 70 AND RSI PREV > 70
C2: ( RSI CURRENT < 70.0 AND RSI PREV > 70.0 ) AND ( MACD < MACD )
Buy
C3: ( RSI CURRENT > 30.0 AND RSI PREV < 30.0 ) AND ( MACD > MACD )
OR
Exit if Stop Loss changes by 3.0%
OR
Exit if Profit Target of 5.0% met
Posted by: Kishor Sandage <kishorsandage@gmail.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (6) |
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/
EmoticonEmoticon