• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 10:33pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 10:33pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

Indicator that shows Wick size 56 replies

X candles without MA's crossing 2 replies

Calculating only buy candles vs sell candles 2 replies

Hortizontal wick drawer 0 replies

Wick removal possible? 2 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe

detect only the candles without a wick on top

  • Post #1
  • Quote
  • First Post: Jul 23, 2018 12:51pm Jul 23, 2018 12:51pm
  •  zac1987
  • | Joined Jun 2018 | Status: Member | 21 Posts
My codes keep detect all candles with wick on top, how to make it detect only the candle without wick on top?

Inserted Code
bool cond=close>open && high>close && high-close>open-low && high-close==0;
  • Post #2
  • Quote
  • Jul 23, 2018 1:58pm Jul 23, 2018 1:58pm
  •  Fauzaan
  • Joined Nov 2017 | Status: Member | 62 Posts
Quoting zac1987
Disliked
My codes keep detect all candles with wick on top, how to make it detect only the candle without wick on top? bool cond=close>open && high>close && high-close>open-low && high-close==0;
Ignored


High>Close and also High-Close == 0 ?? << Wonder how that would work

Here is a suggestion:
Inserted Code
close>open && high-close==0
  • Post #3
  • Quote
  • Last Post: Jul 23, 2018 4:01pm Jul 23, 2018 4:01pm
  •  Nicholishen
  • Joined Jul 2005 | Status: zzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzz | 1,289 Posts
Quoting zac1987
Disliked
My codes keep detect all candles with wick on top, how to make it detect only the candle without wick on top? bool cond=close>open && high>close && high-close>open-low && high-close==0;
Ignored

  1. high - close | won't always exactly equal zero when working with floating point numbers
  2. close>open | this is redundant because condition 1 is the close is at the high
  3. high>close | high will always be >= to close and open so that part is redundant
  4. high-close>open-low | this operator is backwards and also redundant if you're spotting candles that close at the high.

Inserted Code
bool cond = NormalizeDouble(fabs(high - close), _Digits) < _Point;
1
  • Platform Tech
  • /
  • detect only the candles without a wick on top
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2021