autotrade
Custom scripting, Indicators & automated strategies for Pathfinder.

A World of Candlesticks

One of the most usefull things on PathFinder Trader is the candlestick paterns recognition system on wich we can base an indicator or a trading strategy.

The candlestick recognition function is CANDLESTICKPATTERN() also written as CSP(),
it returns a value corrensponding to the found pattern or 0 (zero) if no patterns were found.

look at this frame of code that recognize a morning star formation:

Value_Token

set Patterns = CSP()

set STP = Morning_Star

set PTF1 = REF(Patterns,0) = Morning_Star
set PTF2 = REF(Patterns,1) = Morning_Star
set PTF3 = REF(Patterns,2) = Morning_Star

set BuySignal = PTF1 + PTF2 + PTF3

Value_Token_End

You can see how the candle paint is triggered by the same signal in three different places,
( the signal bar and two bars forward) this is for colorize not only the bar where the signal start but the complete 3 bars set.

Here is a reference to all candlestick patterns recognized by Pathfinder Trader:

An Evening start patter found on a chart…

In the attached example i will illustrate how to use this function to create a paintbar indicator that fill the three bars composing the pattern with a custom color (i will use an orange color for evening star bearish pattern and a light green for the bullish morning star).

Download Indicator: STAR Pattern

Important Disclaimer: The code or software herein contained or attached, including but not limited to Custom indicators, PathScript, Expert Advisors, EAs, and any other Scripts (“Software”), are provided “As Is” and are intended to be used for informational and educational purposes only. The Software is provided by FastBrokers and/or its employees or affiliates (“FastBrokers”) as a courtesy service to its customers and it is intended for informational and educational purposes only and under no circumstances should be regarded as investment advice or as a solicitation or an offer to sell/buy any financial product. FastBrokers assumes no responsibility or liability from gains or losses incurred by the performance of the Software provided. No representation is being made that any account will or is likely to achieve any particular profits or losses. In fact, there are frequently sharp differences between hypothetical performance results and the actual results subsequently achieved by any particular Software. Hypothetical trading does not involve financial risk, and no hypothetical trading record can completely account for the impact of financial risk in actual trading. The Software cannot be guaranteed to be error-free, thus may cause unforeseeable results. By using the Software provided by FastBrokers, End User assumes full responsibility for verifying the validity of the Software, and End User accepts full responsibilities for its actions, trades, profit or loss, and End User agrees to hold FastBrokers harmless in any and all ways. If you do not agree with this statement you must remove the Software from your computer.
All trademarks are the property of the respective owners of each piece of Software, where stated.

 

autotrade
Posted In: Trade, Design, Automate.
Posted By: Salvatore Rossitto
Filed under: Automated Trading
Tags: , , ,
Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Live
  • StumbleUpon
  • Technorati
  • Twitter
  • LinkedIn

No Comments

No comments yet.

Sorry, the comment form is closed at this time.

 
support