Reversing channel breakout

Questions about MultiCharts and user contributed studies.
chilli
Posts: 25
Joined: 10 Jun 2014
Has thanked: 11 times
Been thanked: 4 times

Reversing channel breakout

Postby chilli » 30 Jun 2016

I am trying to reverse the channel breakout strategy.

Code: Select all

[IntrabarOrderGeneration = false]
input: Price( High ), Length( 20 ) ;

Buy ( "ChBrkLE" ) next bar at HighestFC( Price, Length ) + 1 point stop ;
But having no luck. I usually just change the buy and sell orders around on macd and moving averages, in the highestfc function there is extremefc function, which seems to be posing the problem and I have read easy language essentials
a few times but have found no answers...... Obviously I am a complete beginner , any help would be good ,

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

Re: Reversing channel breakout

Postby TJ » 30 Jun 2016

I am trying to reverse the channel breakout strategy.

Code: Select all

[IntrabarOrderGeneration = false]
input: Price( High ), Length( 20 ) ;

Buy ( "ChBrkLE" ) next bar at HighestFC( Price, Length ) + 1 point stop ;
But having no luck. I usually just change the buy and sell orders around on macd and moving averages, in the highestfc function there is extremefc function, which seems to be posing the problem and I have read easy language essentials
a few times but have found no answers...... Obviously I am a complete beginner , any help would be good ,

You need to give more detail.
When you say you "problem", you need to describe the specifics.

1. What are you trying to achieve. "reverse" is a concept, not actionable procedures.
2. What have you done?
3. What should be the expected outcome?
4. What results have you got instead?

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

Re: Reversing channel breakout

Postby TJ » 30 Jun 2016

Do not use the FC functions.
Just use the regular ones, you will have less trouble.

chilli
Posts: 25
Joined: 10 Jun 2014
Has thanked: 11 times
Been thanked: 4 times

Re: Reversing channel breakout

Postby chilli » 01 Jul 2016

TJ, The strategy I am trying to get will buy instead of sell on the channel breakout. that is it. I have no other way to put it. Complete reverse of orders.

The result of changing buy and sell orders around on the code came up with a buy and sell on every single bar at the opening price.

I tried changing the code here on extremefc

Code: Select all

condition1 = CurrentBar = 1
or ( HiLo = 1 and PriceValue < var0 )
or ( HiLo = -1 and PriceValue > var0 ) ;
by reversing the values of 1 to -1 and changing the < var0 to > var0. Just trying to get an understanding. This resulted in no change to the strategy, still had orders on every bar.

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

Re: Reversing channel breakout

Postby TJ » 01 Jul 2016

TJ, The strategy I am trying to get will buy instead of sell on the channel breakout. that is it. I have no other way to put it. Complete reverse of orders.

The result of changing buy and sell orders around on the code came up with a buy and sell on every single bar at the opening price.

I tried changing the code here on extremefc

Code: Select all

condition1 = CurrentBar = 1
or ( HiLo = 1 and PriceValue < var0 )
or ( HiLo = -1 and PriceValue > var0 ) ;
by reversing the values of 1 to -1 and changing the < var0 to > var0. Just trying to get an understanding. This resulted in no change to the strategy, still had orders on every bar.
I have no idea on what you are trying to do.
I will let other people chime in.


Return to “MultiCharts”