Spread indicator

Post Reply
zafh
Trader
Posts: 74
Joined: Mon May 22, 2017 12:48 pm

Spread indicator

Post by zafh »

Would it be possible to code an indicator which visually represents the size of the spread on the chart?
I was thinking maybe 2 horizontal lines where the user can drag the bottom one and the top one follows by the distance of the spread.

I am currently trading off very low time frames using limit orders but I want to be excuted or stopped out on the bid price. I am thinking I could use this to mark where my entry / stop would be but use the upper line for where the actual order goes. I understand that it won't be perfect as spread is constantly changing but it would be close enough.

Is this doable / easy / hard?

Thanks Guys.
User avatar
tomele
Administrator
Posts: 1208
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

Spread indicator

Post by tomele »

Chart properties -> Show Ask Line. The bid is always shown.
Happy pippin, Thomas :-BD

It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so.
(Mark Twain)

Keep the coder going: Donate
zafh
Trader
Posts: 74
Joined: Mon May 22, 2017 12:48 pm

Spread indicator

Post by zafh »

tomele » Fri Mar 04, 2022 2:54 pm wrote:Chart properties -> Show Ask Line. The bid is always shown.

Thanks yes I know about that but it only displays the ask price at the current candle.
What I need to be able to see where my limit entry needs to be to get trigger in at the bid price.

Here is an example trade.
https://www.tradingview.com/x/XfJ5OnaK/

Limit order at the top of the blue box and stop below.
If the spread was 1 for exmaple I would drag the indicator to where my entry is and it would show I need it 1 pip higher to be trigger in.


In this case it wouldn't have mattered as price when deeper but if it just touched the entry it would be missed due to spread.
https://www.tradingview.com/x/SGB29W8S/


I envision the indictor would be used something like this.
https://www.tradingview.com/x/JL4dv2W4/
zafh
Trader
Posts: 74
Joined: Mon May 22, 2017 12:48 pm

Spread indicator

Post by zafh »

What happened to c1borg's post?
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Spread indicator

Post by SteveHopwood »

zafh » Sun Mar 06, 2022 8:03 pm wrote:What happened to c1borg's post?
He deleted it. I never saw it, or his reason for deleting it and so do not know why.

:xm: :rocket:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
Post Reply

Return to “Indicators”