How to create strategy to buy on 10% drop

Questions about MultiCharts and user contributed studies.
rkhan
Posts: 65
Joined: 16 Mar 2014
Has thanked: 1 time
Been thanked: 2 times

How to create strategy to buy on 10% drop

Postby rkhan » 29 Sep 2018

I'm trying to work out how i would create a strategy, where i can buy the market everytime it drops 10%.

But how do i code a 10% drop?

Like every swing the market goes up and down, whenever it swings down 10% , i want to buy it.

How would i code that?

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: How to create strategy to buy on 10% drop

Postby TJ » 29 Sep 2018

I'm trying to work out how i would create a strategy, where i can buy the market everytime it drops 10%.

But how do i code a 10% drop?

Like every swing the market goes up and down, whenever it swings down 10% , i want to buy it.

How would i code that?
First, you have to think through your "strategy"
-- What EXACTLY do you want to do?
-- How do you want to do it?
-- Where do you want to do it?

Second, you have to be precise. You have to establish a reference point.

Where is the 10% drop from?

From today's high?
From yesterday's close?
From yesterday's high?
From 3-month high?
From all-time high?
From last year's high?


Buy on 10% drop is a concept, NOT a strategy.
You need some concrete planning to make it an actionable project.

rkhan
Posts: 65
Joined: 16 Mar 2014
Has thanked: 1 time
Been thanked: 2 times

Re: How to create strategy to buy on 10% drop

Postby rkhan » 29 Sep 2018

I want it from the most recent swing high.
if thats not possible then i'd like to test high within last 3 months, last year, and all time high.

User avatar
pcrespo
Posts: 49
Joined: 07 Feb 2015
Has thanked: 7 times
Been thanked: 4 times

Re: How to create strategy to buy on 10% drop

Postby pcrespo » 01 Oct 2018

It's definitely possible to use the swing high. Are you asking how to code a swing high function? (Because once you have that, coding the strategy you describe would be very easy.)


Return to “MultiCharts”