TradingView
NorthStarDayTrading
2022년 1월 25일 오전 1시 42분

NSDT HAMA Candles STRAT 

E-mini Nasdaq-100 Futures (Mar 2022)CME

설명

This is a STRATEGY based on our popular HAMA Candles Indicator.
It is an "Always On" strategy, meaning it will stay in a Long position until the Short criteria shows up, and then it will close the Long position and immediately enter a Short position.

Since this is a strategy, we added a few more components. The most notable one is the grid at the top right that shows the statistics of whatever the current settings are. The user can change the MA lengths and see the potential results update in real time.

Since this is Always On and uses Moving Averages, we added an ADX setting to help filter our trades in a ranging/choppy market.

The settings will need to be adjusted to find the best fit for your instrument, chart time, and risk management plan.

tradingview.com/script/k7nrF2oI-NSDT-HAMA-Candles/

릴리즈 노트

Fixed a typo in the Entry MA code calculation.
코멘트
ghwq76
Thanks for sharing your script strategy, may I change it to yellow to clear all, green to buy up, red to buy short, it seems better
NorthStarDayTrading
@ghwq76, Sure, you can do that. I published it Open Source, so go ahead and modify as you wish.
ghwq76
@NorthStarDayTrading, May I ask how to modify your script so that it becomes green to buy up, red to sell short, and yellow to close all positions. I don't know the code, I'm learning, I also follow your YOUTUBE. Become a member of your website when you have the chance
NorthStarDayTrading
@ghwq76, To change the default colors in the code, modify these lines with the RGB color you want to use.

//INPUTS
bull = input(color.rgb(0, 255, 0), title='Bull Color', group='----- Candles -----')
bear = input(color.rgb(255, 0, 0), title='Bear Color', group='----- Candles -----')
neutral = input(color.rgb(255, 255, 0, 0), title='Neutral Color', group='----- Candles -----')
ghwq76
@NorthStarDayTrading, I want to modify the (long) (short) (close) conditions of this strategy. According to ('MA Line') green line (long position), yellow line (close position), red line (short position). How to modify the code like this, thank you for sharing.

'MA Line'
yellow line (close position)
green line (long position)
red line (short position)
NorthStarDayTrading
@ghwq76, You won't be able to base an entry or exit on line color. The MA line is red when falling and green when rising. The gradient feature is used to blend the red to the green through yellow.
kairos_kr818
@ghwq76, I want to do that, too.
Did you complete it the way you wanted??
더보기