Swing/Pivot Points

Questions about MultiCharts and user contributed studies.
Eric1704
Posts: 34
Joined: 29 Nov 2022
Has thanked: 15 times

Swing/Pivot Points

Postby Eric1704 » 10 May 2024

Is there a way to reference several swing/pivot highs and lows in Multi Chart? Like look back at last 5 swing/pivot highs and so on.
Thanks.

User avatar
TJ
Posts: 7752
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1034 times
Been thanked: 2228 times

Re: Swing/Pivot Points

Postby TJ » 10 May 2024

First, you have to define what is a swing/pivot?

Do you have an indicator calculating the swing/pivot?
If you do, then it is a matter of creating a variable to store the high/lows so that you can recall them later.

HellGhostEvocatorX
Posts: 93
Joined: 10 Feb 2022
Has thanked: 53 times
Been thanked: 14 times

Re: Swing/Pivot Points

Postby HellGhostEvocatorX » 13 May 2024

So in mutlicharts.net there are zigzag indicators. is this what you are looking for. If you want to work with market technical highs and lows, you actually first have to define what you want to see as high and low points. There are various ways to determine these, including using the time frame: look back x days and find the highest /lowest point. then the question is on what basis: close price, or taking into account the highs and lows?

I'm currently working on a system (according to Larry Williams in mutlicharts.net) and it's really taken a lot of brain power out of me... I'm taking the high and lows of the bars into account here - a special feature here are so-called outside bars. So if you would like a general exchange, I can help you here, but I don't know power language

In mutlicharts.net there is also a built-in function like swinghigh, I think this was taken from powerlanguage

https://uploads.TS.com/upload ... erence.pdf
uploads.TS.com/uploads/EasyLanguage-Functions-and-Reserved-Words-Reference.pdf

You will find this again in these instructions on page 340. As far as I know, easylanguage and powerlanguage are almost identical

You could store the points themselves in a list or array and then refer to them.
Attachments
MLW.png
(159.83 KiB) Not downloaded yet
Last edited by HellGhostEvocatorX on 13 May 2024, edited 1 time in total.

HellGhostEvocatorX
Posts: 93
Joined: 10 Feb 2022
Has thanked: 53 times
Been thanked: 14 times

Re: Swing/Pivot Points

Postby HellGhostEvocatorX » 13 May 2024

hmm I can't open the link here via the forum, if necessary search "easy language pdf" on Google and it was the second hit for me
Attachments
ELSH.png
(141.98 KiB) Not downloaded yet

Eric1704
Posts: 34
Joined: 29 Nov 2022
Has thanked: 15 times

Re: Swing/Pivot Points

Postby Eric1704 » 05 Jun 2024

First, you have to define what is a swing/pivot?

Do you have an indicator calculating the swing/pivot?
If you do, then it is a matter of creating a variable to store the high/lows so that you can recall them later.
Thanks TJ. I am using the indicators Pivot High and Pivot Low. I want to track the last five values of the pivot highs and last five values of the pivot lows. The last actual highs and lows created as pivots.
Thanks.

Eric1704
Posts: 34
Joined: 29 Nov 2022
Has thanked: 15 times

Re: Swing/Pivot Points

Postby Eric1704 » 05 Jun 2024

hmm I can't open the link here via the forum, if necessary search "easy language pdf" on Google and it was the second hit for me
This is for TS? I do not think Multi Charts has this exact same thing to go back instances.

HellGhostEvocatorX
Posts: 93
Joined: 10 Feb 2022
Has thanked: 53 times
Been thanked: 14 times

Re: Swing/Pivot Points

Postby HellGhostEvocatorX » 09 Jun 2024

So the principle for identification is actually always similar, a certain period length is taken and it is looked at which is the highest point. This then corresponds to the pivot high in simplified terms. If you already use pivot high in easy language, then simply write it into a list or array and you can access the last 5 pivot points. chatgpt suggests the following code for this

Code: Select all

// Define variables to store the last 5 high and low pivot points Vars: HighPivots , LowPivots ; // Define the pivot strength (number of bars to the left and right for the pivot) Input: PivotStrength(5); // Loop through the bars and find pivot highs and lows For Value1 = 1 To 5 Begin // Find the pivot high If PivotHigh(PivotStrength, PivotStrength) Then HighPivots[Value1] = High[PivotStrength]; // Find the pivot low If PivotLow(PivotStrength, PivotStrength) Then LowPivots[Value1] = Low[PivotStrength]; End; // Plot the last 5 pivot highs For Value2 = 1 To 5 Begin Plot1[Value2](HighPivots[Value2], "HighPivot" + NumToStr(Value2, 0)); End; // Plot the last 5 pivot lows For Value3 = 1 To 5 Begin Plot2[Value3](LowPivots[Value3], "LowPivot" + NumToStr(Value3, 0)); End;
In this code:

PivotStrength defines the number of bars to the left and right of the pivot point to identify a high or low point.
HighPivots and LowPivots store the last 5 high and low points respectively.
The for loops iterate over the bars to find and store the high and low points.
Plot1 and Plot2 plot the last 5 high and low points on the chart.
You can paste and customize this code into MultiCharts to display the last 5 pivot high and low points.


I can't guarantee that everything in the PDF linked above is correct, but easylanguage has the same or very similar structure across several platforms, so you could normally use the document above without any problems to learn keywords and functions to find and how they work. As far as I know, Multicharts.net also implements many of these functions in a different programming language

Eric1704
Posts: 34
Joined: 29 Nov 2022
Has thanked: 15 times

Re: Swing/Pivot Points

Postby Eric1704 » 10 Jun 2024

Is the code above for TS? Can you ask chatGPT to create it for Multi Charts? Or it is not smart enough to do so?

HellGhostEvocatorX
Posts: 93
Joined: 10 Feb 2022
Has thanked: 53 times
Been thanked: 14 times

Re: Swing/Pivot Points

Postby HellGhostEvocatorX » 11 Jun 2024

https://chatgpt.com/share/73db24cb-5db7 ... 69d11d478d

chatgpt is free and can now also be used without registration. It's not always perfect, but in the newer versions it seems to be very familiar with programming questions and especially with multicharts. It may not always be error-free, but it can be helpful for simple questions about multicharts and programming or at least give you an idea and point you in the right direction.

I don't have a normal multicharts, so I can't test the code, you would have to do this yourself.

As described, TS and multicharts should both use the same programming language "easylanguage", where the code should work in both systems.

Eric1704
Posts: 34
Joined: 29 Nov 2022
Has thanked: 15 times

Re: Swing/Pivot Points

Postby Eric1704 » 11 Jun 2024

Thanks. There were tooo many errors in the script chatGPT gave us it seems.


Return to “MultiCharts”