blackFLAG FTS - SwingArm Trend Indicator using ATRTrailing Stop and Fibonacci Retracements

Status
Not open for further replies.
Next, I look up order flows of AMN, and found the below.
Homework is done, the rest is your own judgement and action.

ZG3Mqxv.png
 
My apologies if this has been addressed earlier, however, is there a scan for this strategy? Specifically to scan for stocks that are above or below the swing arm? If not how would one code this into a scan?
 
Last edited:
@Playstation , I would like to setup the following columns for 1min, 5min, 15min and 1hr, can you please advise if I only need to change the
ATRPeriod variable in order to plot the results for the respective timeframes as I have it below?

input ATRPeriod = 1;
input ATRPeriod = 5;
input ATRPeriod = 15;
input ATRPeriod = 60;

Thanks.
 
@Craighaber71 Hey Ben....If you put audio on your video and explained what your doing it might be easier to follow....Some parts of the video I had no idea what was going on...Just a thought...Cheers

@Craighaber71
id be happy to help. Are you referring to the video in post #155. Not sure what you mean by "if you put audio on your video....". contact me i'd be happy to help, or provide more details in your post so i can help. im around most of the night
 
You don't need to change any of the script, just change the aggregation period to set the individual columns in the watchlist.
 
no, don't use script editor to set conditions.
just locate the study, set it to either max or min, is true within X bars, and that's all.
 
Last edited:
Hi All,

I'm a bit confused with the codes for the scanners, I am aware that there is a separate buy scanning code and sell scanning code for the swingarms, however there was code released that seems to put all of this together for both buy and sell signals, code is from @Craighaber71 . I would like to confirm if this code provides valid signals, I have set it up on my end but am unable to monitor it until the market opens again. Thanks

Code:
input trailType = {default modified, unmodified};
input ATRPeriod = 28;
input ATRFactor = 5;
input firstTrade = {default long, short};
input averageType = AverageType.WILDERS;
input fib1Level = 61.8;
input fib2Level = 78.6;
input fib3Level = 88.6;
Assert(ATRFactor > 0, "'atr factor' must be positive: " + ATRFactor);
def trail = ATRTrailingStop(trailType, ATRPeriod, ATRFactor, firstTrade, averageType);
def stateLong = low > trail[1];
def stateShort = high < trail[1];
def BuySignal = Crosses(stateLong, 0, CrossingDirection.ABOVE);
def SellSignal = Crosses(stateShort, 0, CrossingDirection.ABOVE);
def ex = if BuySignal then high else if SellSignal then low else if stateLong then Max(ex[1], high) else if stateShort then Min(ex[1], low) else ex[1];
def TrailingStop = trail;
def Extremum = ex;
def f1 = ex + (trail - ex) * fib1Level / 100;
def f2 = ex + (trail - ex) * fib2Level / 100;
def f3 = ex + (trail - ex) * fib3Level / 100;
def l100 = trail + 0;
def Fib1 = f1;
def Fib2 = f2; def Fib3 = f3;
plot data = f1 > f2;
AssignBackgroundColor(if f1 > f2 then Color.GREEN else Color.RED);
 
Status
Not open for further replies.

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
304 Online
Create Post

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top