Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

PCF Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
loadmanjoe
Posted : Tuesday, July 21, 2015 1:24:56 PM
Registered User
Joined: 6/17/2008
Posts: 22

I am looking for a scan this will show me when the ave price on a Heiken Ashi Candle crosses the 8 EMA. Thank you for any and all help

StockGuy
Posted : Tuesday, July 21, 2015 1:39:57 PM

Administration

Joined: 9/30/2004
Posts: 9,187

You don't need a PCF for that. Set your plot style to Heiken- Ashi and add an 8 period EMA to the price.  Then click on Price and select Create Scan Condition and set the Condition to Crossing Up Exp Mov Avg 8.

 

http://support.tc2000.com/m/33348/l/375851-how-to-create-a-scan-condition-for-for-price-crossing-a-moving-average-and-save-it-to-the-condition-library

loadmanjoe
Posted : Tuesday, July 21, 2015 2:22:48 PM
Registered User
Joined: 6/17/2008
Posts: 22

I am not looking for just the price to be above the 8EMA. I am looking for the main body of the Heiken Ashi Candle to be crossing above the 8EMA . The price and the body of a Heiken Ashi are never the same . The body is just an Ave of the price. If it were a simple candle what you told me would of worked fine.

StockGuy
Posted : Tuesday, July 21, 2015 2:44:02 PM

Administration

Joined: 9/30/2004
Posts: 9,187

The Close of an HA candle is the average of price. But I understand what you're asking for now. You want the candle body straddling the EMA.  I don't know how to do that with a PCF.

 

Calculating the Modified Bars 
Normal candlestick charts are composed of a series of open-high-low-close (OHLC) bars set apart by a time series. The Heikin-Ashi technique uses a modified formula:

  • xClose = (Open+High+Low+Close)/4 
    o Average price of the current bar
  • xOpen = [xOpen(Previous Bar) + Close(Previous Bar)]/2 
    o Midpoint of the previous bar
  • xHigh = Max(High, xOpen, xClose) 
    o Highest value in the set
  • xLow = Min(Low, xOpen, xClose) 
    o Lowest value in the set


 

loadmanjoe
Posted : Tuesday, July 21, 2015 2:56:02 PM
Registered User
Joined: 6/17/2008
Posts: 22

Ok thanks for the try . Any of the members reading this . Do you guys know how to write they type of PCF?

busterram
Posted : Tuesday, July 21, 2015 4:28:52 PM
Registered User
Joined: 10/9/2011
Posts: 485

Try something like this and see if this works for you

(h+l+o+c)/4 > (xavgh8+xavgl8+xavgo8+xavgc8)/4
 
Good luck
loadmanjoe
Posted : Wednesday, July 22, 2015 4:09:18 AM
Registered User
Joined: 6/17/2008
Posts: 22

Thank you busterram ! I was able to make what you sent me in the PCF work . Thanks for taking the time to write the PCF out.

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.