Box price

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Re: Box price

Postby Apprentice » Tue Feb 28, 2012 5:42 am

Everything is clear, unfortunately I have not had time to work on this.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Box price

Postby Alexander.Gettinger » Fri Mar 02, 2012 3:53 pm

Panther wrote:I am looking for 2 horizontal lines. The user sets the distance between the 2.
The lines move like trailing stops. For example, when price moves up through the high line, both lines begin to move up. When price reverses off the high line, the lines do not move until price moves either up through the high line or down through the low line.
Does this clarify my request? Thank you.


I hope I understand you correctly.
BoxPrice2.lua
(3.27 KiB) Downloaded 854 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Box price

Postby Panther » Sun Mar 04, 2012 4:29 pm

Hi Alexander .
Imagine a dynamic trailing stop of 20 pips, and price is moving up. The DnLine is the trailing stop. The UpLine remains 20 pips above the DnLine. As price moves up the lines move up. When price reverses the lines do not move. When price moves down, and hits the DnLine, then the UpLine acts like a dynamic trailing stop. The distance between the lines stays the same.

In this example, the start calculation is 10 pips above and 10 pips below current price. The lines do not move until price contacts one of the lines. At that time, action is like a dynamic trailing stop.
Movement is on a tick by tick basis (not close of candle). Thanks
Panther
 
Posts: 71
Joined: Mon Nov 21, 2011 7:31 am

Re: Box price

Postby Panther » Tue Mar 27, 2012 3:58 pm

Apprentice, is Alexander working on this, or are you able to?
Panther
 
Posts: 71
Joined: Mon Nov 21, 2011 7:31 am

Re: Box price

Postby nazaar » Wed Mar 28, 2012 10:25 pm

This is another brilliant trading tool!

There is another trading tool called breakout combining elements of box price with the breakout indicator could be very useful. see breakout here: viewtopic.php?f=17&t=966

from the break out high and low line please give the user the option to draw a horizontal line X pip above and below.

thanks and great work as always!
nazaar
FXCodeBase: Initiate
 
Posts: 178
Joined: Fri May 27, 2011 2:21 pm
Location: Ontario, Canada

Re: Box price

Postby nazaar » Thu Mar 29, 2012 9:55 am

Apprentice wrote:Panther, I have two questions for you. How do you want to determine the height of the box. From High to Low, Standard deviation, set by user (in pips) or another. Is it limited in time.


Hello,

May I suggest, one possible way to determine the height of a box is to add the ruler tool to the rectangle/box tool. If adding the ruler to the rectangle box is possible you can then draw the height of your box to any level you choose and then be able to place it anywhere you want as a starting level.

thoughts?
nazaar
FXCodeBase: Initiate
 
Posts: 178
Joined: Fri May 27, 2011 2:21 pm
Location: Ontario, Canada

Re: Box price

Postby Panther » Thu Mar 29, 2012 4:09 pm

Apprentice wrote:Everything is clear, unfortunately I have not had time to work on this.

Nazaar, I am not aware of any issues per Apprentice's reply. Thanks, Panther
Panther
 
Posts: 71
Joined: Mon Nov 21, 2011 7:31 am

Re: Box price

Postby Apprentice » Sat Mar 31, 2012 3:50 am

Nazaar, Your request is added to the development list.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Box price

Postby Victor.Tereschenko » Thu Aug 09, 2012 6:56 am

Panther wrote:Hi Alexander .
Imagine a dynamic trailing stop of 20 pips, and price is moving up. The DnLine is the trailing stop. The UpLine remains 20 pips above the DnLine. As price moves up the lines move up. When price reverses the lines do not move. When price moves down, and hits the DnLine, then the UpLine acts like a dynamic trailing stop. The distance between the lines stays the same.

In this example, the start calculation is 10 pips above and 10 pips below current price. The lines do not move until price contacts one of the lines. At that time, action is like a dynamic trailing stop.
Movement is on a tick by tick basis (not close of candle). Thanks

Try this version. It acts like a dynamic trailing stop.
Attachments
BoxPrice3.lua
(4.51 KiB) Downloaded 857 times
Victor.Tereschenko
FXCodeBase: Confirmed User
 
Posts: 144
Joined: Fri Nov 19, 2010 8:55 am

Re: Box price

Postby Panther » Sat Jul 06, 2013 5:32 am

Change to BoxPrice3.lua- I wish for the lines to stay in the same relative position to each other.
Once price contacts one line, both move in the same direction until price reverses.
When price reverses, the lines do not move again until price touches the opposite line.
At that point the lines move in the opposite direction.
Thanks
Panther
 
Posts: 71
Joined: Mon Nov 21, 2011 7:31 am

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 184 guests