Script to draw line at 50% of candle

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.

Script to draw line at 50% of candle

Post by SteveHopwood »

Attached is a version of your script that shows you how to add line widths, styles and colours in ways that enable you to offer inputs that users cannot get wrong.

ENUM_LINE_STYLE is one of the enumeration available inside Empty4. Look a few lines further up and you can see how to create your own custom enums.

You can be as complex as you want. You can create externs for line sizes, styles and colours for each individual time frame. You can have externs to offer the option to show more than one time frame e.g
extern bool ShowH4 = true;
extern bool ShowH1 = true;
extern bool ShowM30 = true;

You can combine all the time frames into an array so that you only need to iterate around an array loop when the script is deciding whether to draw a line or not for the particular time frame.

Play around and have some fun.

:xm:
You do not have the required permissions to view the files attached to this post.
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.
GT3RS
Trader
Posts: 198
Joined: Fri Dec 23, 2011 1:58 pm

Script to draw line at 50% of candle

Post by GT3RS »

Many thanks Steve!

I'll have a go!!!
GT3RS
Trader
Posts: 198
Joined: Fri Dec 23, 2011 1:58 pm

Script to draw line at 50% of candle

Post by GT3RS »

Well...............

It's been a while, and I have tried to make sense of this several times. COMPLETELY without success!!

You coders are a different breed! REALLY!!!

Would love to learn how to do this, but I'm starting from a point of absolutely ZERO knowledge, so would need an awful lot of hand holding........

Or maybe there just aren't enough synapses firing............. :smile: :smile: :smile:
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.

Script to draw line at 50% of candle

Post by SteveHopwood »

GT3RS » Thu Mar 29, 2018 12:11 pm wrote:Well...............

It's been a while, and I have tried to make sense of this several times. COMPLETELY without success!!

You coders are a different breed! REALLY!!!

Would love to learn how to do this, but I'm starting from a point of absolutely ZERO knowledge, so would need an awful lot of hand holding........

Or maybe there just aren't enough synapses firing............. :smile: :smile: :smile:
I take it that you did not manage what you described in this post http://www.stevehopwoodforex.com/phpBB3 ... 00#p159600?

: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 “Scripts”