Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

local high + local low Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
soli
Posted : Monday, July 21, 2008 10:37:25 AM
Registered User
Joined: 4/14/2008
Posts: 50

hello,

I want that blocks will show me local high and local low .

=  the defintion for local high is : H(1) < H(2) > H(3) , and L(2) > L (3)

= the defintion for local low is : L(1) > L(2) < L(3) , and H(2) < H (3)

in the above cases day 2  is the day of turn and I want blocks will paint this bar 
or it will be shown with a little sign above it . 


thank you very much .

Bruce_L
Posted : Monday, July 21, 2008 10:53:25 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Is L(3) the most recent Bar or the oldest Bar?

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
soli
Posted : Monday, July 21, 2008 11:19:54 AM
Registered User
Joined: 4/14/2008
Posts: 50
l(3) is the oldest bar .
 
i want that blocks will show me all the the local high and low for specfic period , not just the last local high + low
Bruce_L
Posted : Monday, July 21, 2008 11:31:26 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Please try the following RealCode Paint Brush:

If isLastBar Or isFirstBar Then
    PlotColor = Color.White   
Else If Price.High(-1) < Price.High And _
    Price.High > Price.High(1) And _
    Price.Low > Price.Low(1) Then
    PlotColor = Color.Red
Else If Price.Low(-1) > Price.Low And _
    Price.Low < Price.Low(1) And _
    Price.High < Price.High(1) Then
    PlotColor = Color.Blue
Else
    PlotColor = Color.White
End If

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
soli
Posted : Monday, July 21, 2008 11:37:30 AM
Registered User
Joined: 4/14/2008
Posts: 50

I used some setting  on the chart . so I dont want that the above setting will interfere so can I create an indicator and in this way it will just show above it .

soli
Posted : Monday, July 21, 2008 11:48:32 AM
Registered User
Joined: 4/14/2008
Posts: 50

thank very much Bruce . I attach more deatils maybe youwill know how to combine with the information above and what i use so this is the code for my chart (I want to combine this with your answer ) 

If price.Close > price.close(1) Then plotcolor = color.lime

If price.Close < price.close(1) Then plotcolor = color.red

as I told I perfer it will be shown to me with indicator . it's more comfortable

Bruce_L
Posted : Monday, July 21, 2008 1:36:28 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I have Shared a Chart. If you want to take a look:

Select Share | Charts.
Type soli34161 and select Search.
Select the soli34161 Chart.
Select Open.

It Block Diagram based True Markers Plots to place arrows on the Chart based on RealCode Conditions (called Local High and Local Low). You can right-click on the LH and LL True Markers Plots on the Chart and select Block Diagram to see how the Block Diagrams were constructed.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
soli
Posted : Monday, July 21, 2008 2:00:10 PM
Registered User
Joined: 4/14/2008
Posts: 50
splendid . 

just one tought can i see it in point beside arrow ? 
where can i change it ? 

you're great . 

thank you  .
Bruce_L
Posted : Monday, July 21, 2008 2:01:57 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
If you right-click on LH and LL and select Properties, you can adjust the Flag Type.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
soli
Posted : Monday, July 21, 2008 2:30:35 PM
Registered User
Joined: 4/14/2008
Posts: 50
BRUCE THANK YOU SO MUCH 
I look deeply on what you create and I saw somtimes it doesn'y recognize . 
I attach chart " bruce big " 
may you have a look . I marked the areas  
Bruce_L
Posted : Monday, July 21, 2008 2:42:59 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
7/15/2008 is a Local Low. You don't see the arrow because it is plotted below the bottom of the chart. If you Drag and Drop the Local Low Condition from the Condition Palette to the Chart, you will see it marked.

On 6/24/2008, it isn't a Local Low by your definition because the High on 6/24 is above the High of 6/23.
On 6/16/2008, it isn't a Local High by your definition because the High of 6/17 as above the high of 6/16.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
soli
Posted : Monday, July 21, 2008 4:32:49 PM
Registered User
Joined: 4/14/2008
Posts: 50


Thank you . 
This service is something differnet from waht I know here in Israel . 
It's so kind . 

Good day

Bruce_L
Posted : Monday, July 21, 2008 4:36:12 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
soli
Posted : Monday, July 21, 2008 5:42:33 PM
Registered User
Joined: 4/14/2008
Posts: 50
ok now i want to add this chart to other chart . 
how do i copy blocks digram  to  other chart ? 
I haveservel chart that i made before and now i want to aff this featurs to them ? 

thank you
debdon
Posted : Monday, July 21, 2008 8:54:24 PM
Registered User
Joined: 6/15/2008
Posts: 58
Hello Bruce,

I am stuck here!

I did copy this formula and I can see the  LOCAL HIGH  and  LOCAL LOW under the CONDITION PALETTE.

It is titled  BARCHART. WINDOW.

My problem is that when I try to place this on my price charts NOTHING happens?

One other thing, he uses barcharts while I prefer candles.

Any help on this will be greatly appreciated!


Thanks,

Gerry
Bruce_L
Posted : Tuesday, July 22, 2008 9:43:37 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
To move the RealCode Conditions from one Chart to another, you will want to create new RealCode Condition (selecting the Chart on which you wish to associate the RealCode Conditions when asked) while Copying and Pasting the RealCode from the old RealCode Conditions to the new RealCode Conditions.

You can Copy and Paste the LH and LL True Markers Plot from the Shared Chart to your own Chart, but when you delete the Shared Chart, the True Markers Plots will disappear. This is because they use Local High and Local Low Conditions and Price History from the Shared Chart in their Block Diagrams. If you right-click on the LH and LL True Markers Plots and select Block Diagram, you can connect them to the Conditions and Price History on your own Chart instead (how to do so is explained in the next two paragraphs).

If you left-click and Drag and Drop the the Input to the Bar High Block (in the LH Plot) or the Bar Low Block (in the LL Plot) to the Price History of your own Chart, it should use that Price History to Place the True Markers.

If you left-click and Drag on the Input to the True Markers Block in the LH Plot and the LL Plot, it should bring up a menu where you can select Link From Another Tool. You will want to choose the Local High Condtion associated with your own Chart for the LH True Markers Plot and the Local low condition associated with your own Chart for the LL True Markers Plot.

You can change the Display Style of a Plot by right-clicking on the Plot and selecting Properties (or by left-clicking on the Plot and bringing up QuickEdit).

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
soli
Posted : Tuesday, July 22, 2008 10:58:45 AM
Registered User
Joined: 4/14/2008
Posts: 50

what is the best way ? 

I try to connect the blocks diagram , how do I make it ? 
If connect between the blocks digram is it mean that I can delete the share chart ? 
Bruce_L
Posted : Tuesday, July 22, 2008 11:07:02 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
soli,
You can delete the Shared Chart once you alter the Block Diagrams that you Copy and Paste from the Shared Chart. The third and fourth paragraphs of my Tuesday, July 22, 2008 9:43:37 AM ET post explains the individual steps required to alter the Copied and Pasted Block Diagrams, but reviewing the following video might be helpful in understanding the explanation better.

Your First 3 Block Diagrams

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
soli
Posted : Tuesday, July 22, 2008 11:59:37 AM
Registered User
Joined: 4/14/2008
Posts: 50
bruce 

i tried a lot of time and it make me error and stop on blocks  in blocks .  
i shared DEAR BRUCE chart , please te changes cause I really don't under stand how . 

thank you so much
debdon
Posted : Tuesday, July 22, 2008 12:26:09 PM
Registered User
Joined: 6/15/2008
Posts: 58
Hello Bruce,

I've tried to do as you indicate but could not get anywhere.

I picked up the phone and called SUPPORT and the person I spoke to also could not figure it out (  that is to say how to place the red and blue arrows on my chart ), so I guess that I am not alone in not being able to figure this out.

Just thought I would let you know that I tried my best and it's not doing it for me.


Thanks,  


Gerry
Bruce_L
Posted : Tuesday, July 22, 2008 12:51:07 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
soli,
I cannot find a DEAR BRUCE Shared Chart (it would probably be better to Share a Layout in any case).

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
soli
Posted : Tuesday, July 22, 2008 1:35:56 PM
Registered User
Joined: 4/14/2008
Posts: 50
hi again :

1 . I share DEAR BRUCE layout . 
eitan anlysis this is the chart that I want the arrow there . 
If can I see it in another chart so on kelthner weeklt as well . 

2. I tried to create the price history looked in specfic way but without sucessed. 
this is waht I want to create : 
a. if   price c(1) <price close > price.open then plot green ( long day fully green )
a. if   price c(1) >price close < price.open then plot red ( long day fully red ) 
a. if   price c(1) >price close > price.open then plot green just the frame no inside the candle  
a. if   price c(1) <price close < price.open then plot red  just the frame no inside the candle  

what to do say ? how I can create this ? i tried a lot
Bruce_L
Posted : Tuesday, July 22, 2008 1:46:38 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
debdon,
Technical support provides assistance when something goes wrong with the program. While they might answer some basic functionality qusetions, they do not provide customer training. Let's break the steps down.

- Select Share | Charts.
- Type soli34161 and select Search.
- Select the soli34161 Chart.
- Select Open.

- Right-click on LH on the Shared Chart and select Copy.
- Right-click on the Price Pane of your Chart and select Paste.
- Right-click on LL on the Shared Chart and select Copy.
- Right-click on the Price Pane of your Chart and select Paste.

- Select Condition Palette (if it is not already displayed).

- Double-left-click on Local High to bring up the RealCode Editor.
- Right-click in the RealCode Editor and select Select All.
- Right-click in the RealCode Editor and select Copy.
- Close the RealCode Editor.
- Select RealCode Editor | Condition | the name of your Chart.
- Call the Condition Local High and select OK.
- Right-click in the RealCode Editor and select Select All.
- Right-click in the RealCode Editor and select Paste.
- Select Apply and close the RealCode Editor.

- Double-left-click on Local Low to bring up the RealCode Editor.
- Right-click in the RealCode Editor and select Select All.
- Right-click in the RealCode Editor and select Copy.
- Close the RealCode Editor.
- Select RealCode Editor | Condition | the name of your Chart.
- Call the Condition Local Low and select OK.
- Right-click in the RealCode Editor and select Select All.
- Right-click in the RealCode Editor and select Paste.
- Select Apply and close the RealCode Editor.

- Close the Shared Chart (selecting Discard and Yes when prompted).

- Right-click on LH and select Block Diagram.
- Drag and Drop the Input of the Bar High Block (it's a gray arrow) to the Price History Plot.
- Left-click and Drag (letting up the mouse after the Drag) on the Input ot the True Markers Block.
- Select Link From Another Tool | Local High.
- Close the Block Diagram Window.

- Right-click on LL and select Block Diagram.
- Drag and Drop the Input of the Bar Low Block (it's a gray arrow) to the Price History Plot.
- Left-click and Drag (letting up the mouse after the Drag) on the Input ot the True Markers Block.
- Select Link From Another Tool | Local Low.
- Close the Block Diagram Window.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Bruce_L
Posted : Tuesday, July 22, 2008 3:00:07 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
soli,
Unfortunately your Layout is a bit resource intensive for my computer and I can't run it. I've adjusted your eitan analysis Chart and re-Shared it however.

If you create a RealCode Indicator using the following RealCode (using Candlestick as the Display Style):

If (Price.Last(1) > Price.Last And _
    Price.Last > Price.Open) Or _
    (Price.Last(1) < Price.Last And _
    Price.Last < Price.Open) Then
    highValue = Price.High
    lowValue = Price.Low
    openValue = System.Math.Min(Price.Open,Price.Close)
    Plot = System.Math.Max(Price.Open,Price.Close)
Else If (Price.Last(1) < Price.Last And _
    Price.Last > Price.Open) Or _
    (Price.Last(1) > Price.Last And _
    Price.Last < Price.Open) Then
    highValue = Price.High
    lowValue = Price.Low
    openValue = System.Math.Max(Price.Open,Price.Close)
    Plot = System.Math.Min(Price.Open,Price.Close)
Else
    Plot = Single.NaN
End If

And then use the following RealCode as a RealCode Paint Brush:

If (Price.Last(1) > Price.Last And _
    Price.Last > Price.Open) Or _
    (Price.Last(1) < Price.Last And _
    Price.Last > Price.Open) Then
    PlotColor = Color.Lime
Else If (Price.Last(1) < Price.Last And _
    Price.Last < Price.Open) Or _
    (Price.Last(1) > Price.Last And _
    Price.Last < Price.Open) Then
    PlotColor = Color.Red
End If

It should Plot and Paint your Candles as requested (at least to my understanding of your request). It will not Plot a Candle that does not meet one of the four Conditions. It should be noted that it does this by actually switching the Open and Close under some circumstances, so you should use the original Price History as the Parent Indicator for any Child Indicators that need the correct Price for their calculations.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
soli
Posted : Tuesday, July 22, 2008 4:12:10 PM
Registered User
Joined: 4/14/2008
Posts: 50

1. thank you so much . I really appreciate your effort . it's  gergous .
 
2. how do u recommand to desgin the color behind candlestick?

dood day

Bruce_L
Posted : Tuesday, July 22, 2008 4:22:18 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I'm not sure what you are saying about the "color behind candlesticks". If it is Plotted in the same Pane as the original Price History, you may want to uncheck Draw in QuickEdit (or uncheck Draw On Chart under Properties) for the Price History.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
debdon
Posted : Thursday, July 24, 2008 1:14:13 PM
Registered User
Joined: 6/15/2008
Posts: 58
Hello Bruce,

Thanks for the reply.

I am stuck at the end of the formula.

I am where you indicate " Close the Shared Chart ( select  Discard )

It says " Right click on LH and select Block Diagram "  How do I get there?

Also, when I am ready to apply this to my chart, will I be seeing the Red and Blue Arrows as in the sample chart?

Thanking you in advance,


Gerry
Ryan15
Posted : Friday, July 25, 2008 9:57:00 AM
Registered User
Joined: 10/7/2004
Posts: 91
Hello all,

I am told to Select Link From Another Tool  Local High, after draging on the Input of the True Markers Block.

How and where do I find this part of the formula
Craig_S
Posted : Friday, July 25, 2008 1:10:35 PM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819

When you are in the Block diagram, drag off the output of the True Markers Block and you should see the menu described.  This is not part of a formula.

If you go through Bruce's instructions you should see the steps to get to the Block Diagram.  You might also find this video helpful: Your First 3 Block Diagrams



- Craig
Here to Help!
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.