CalculateOnLastBars
Forums › ProRealTime English forum › ProBuilder support › CalculateOnLastBars
- This topic has 12 replies, 3 voices, and was last updated 5 years ago by robertogozzi.
-
-
01/01/2020 at 3:56 PM #115681
How can l calculate my close in [13] bars example: close price 1,451.30 – close in [50] bars 1,460.16
123456789MyNextLow = Lowest [13] (close)For ii = 13 downto 0 doif low [ii] = W2 thenW2 = iidrawtext(#W2#,barindex[ii],low[ii])endifnextNow l need to calculate my [13] close price 1,451.30 – [50] 1,460.16 = 8.86
01/01/2020 at 4:44 PM #11568301/01/2020 at 5:46 PM #115687l want to know my closing price of W2 = 1,451.30 so l can use to calculate W2 closing price to my next closing price ex – or + = can l use
12345678MyNextLow = lowest [13] (close)for ii = 13 downto 0 do //do the ations belowif low [ii] = W2 thenW2 = iidrawtext(#W2#,barindex[ii]) // draw W2 on the lowest low on my barindex or chart in [13] barsendifnextDefparam CalculateOnLastBar = [13] low close // need to calculate W2 closing price then need to calculate the next [50] bars close01/01/2020 at 8:05 PM #115689I still don’t understand what you are trying to achieve but there are a number of coding errors I notice and that also make it difficult to understand what you are trying to do.
DEFPARAM must always be at the beginning of a code.
CALCULATEONLASTBAR is missing an S at the end.
DEFPARAM CALCULATEONLASTBARS cannot be followed by [13] low close. It must be a simple integer value.
for ii = 13 downto 0 do looks at 14 bars including the current still forming bar and not the last 13.
You define MyNextLow but never use it in the code.
1 user thanked author for this post.
01/01/2020 at 10:07 PM #115695Thank you for your help but l never coded before if you need a house built l can build it with my eyes closed. This is my first coding l have done but what l trying to achieve on my coding it has never been done before counting waves Wave 1> Wave 2< Wave 3> Wave 4< Wave 5 Target Price Correction, and that is even harder to achieve
01/01/2020 at 10:48 PM #115701Thanks for the offer but I’m not in need of a house right now. I’ll be in touch if I ever get fed up with living on a sailing boat in the sun though.
You’ll need to give a better description of what you are trying to achieve with maybe some attached screenshots with some doodles on. Trying to code for waves seems like quite an ambitious first coding project.
1 user thanked author for this post.
01/02/2020 at 12:08 AM #115709Thanks for you honest opinion but l had a app builder to make a app for me and they had to code my system to make it work. so l know that my wave system work on coding. here are some screenshots of my app on youtube https://www.youtube.com/watch?v=s0porXPjV5I
01/02/2020 at 12:58 AM #11571001/02/2020 at 1:04 AM #115711MultiCharts, like any different trading platform has a proprietary programming language and can’t use PRT’s (I think it uses Easy Language).
We cannot deal with it. You may try requesting paid programming services, they might help you.
01/02/2020 at 1:14 AM #11571301/02/2020 at 1:49 AM #115714taqaro?
I replied on Dec. 26th.
But I suggest that you use the programming services. Thank you 🙂
01/02/2020 at 2:09 AM #11571501/02/2020 at 2:49 AM #115716Do not post contact info and private messages. Thank you. 🙂
I will try to resend you my reply. Make sure it’s not thrown in the trash bin or considered spam.
-
AuthorPosts