Bullish Pinbar Help

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #18766 quote
    fesxeurex
    Participant
    Junior

    Hello guys

    Ive been looking at some of the new videos posted by Nicholas https://www.youtube.com/watch?v=VChJQ00LtHg trying helped me getting started on coding.

    im looking to replicate and make bullish pinbar. likes to draw on my charts but im using 10.2 so no luck their

    Its like as below

    c2 – If Close > Moving Average 200

    c3 – If low > Moving Average 20 AND Close > Moving Average 20

    c4 – If Close > Open

    c5 –  as per video bullish pinbar logic

    avg20 = average[20]
    avg200 = average[200]
    
    c2 = close > avg200
    c3 = low > avg20 and close>avg20
    c4 = close>open
    c5 = abs(open-close)/abs(close-low) <= .5
    
    condition = c2 and c3 and c4 and c5
    screener [condition]

    What im looking for is

    1. Remove small bars and holidays like sunday or US,UK specific days
    2. Since im running this on currencies and commodities and stock how do i take into account the point value
    3.  Run this on Daily as well as 4H and 1Hr.
    4. Have some variable set so that i can test for lets say last 5 days for any major pinbar which ive missed
    5. run on different timeframes than my platform im on GMT but would like to see it on NY timeframe.

    Thats all small list 🙂

    Let me know if anyone has experienced this or can help me out with any posts or documentation.

    Many Thanks

    #18778 quote
    Nicolas
    Keymaster
    Master

    Here are some answers to your “small list” 🙂

    1/ About small bars, you can set a condition that test if the bar is at least 20 points for example:

    nosmallbar = range>20*pointsize

    To eliminate specific days, you’ll have to make some conditions with other Date&Time instructions you’ll find in the documentation here:  http://www.prorealcode.com/documentation/category/dateandtime/

    2/ Point value of the current instrument is retrieved with “pointsize” instruction like I did on 1/ example

    3/ Just change the timeframe in your ProScreener window

    4/ Make a new condition that will test if the c5 condition occured at least once in the last 5 previous candlesticks too:

    c6 = summation[5](c5)>0

    5/ Change your GMT time into the platform options for each individual group of stocks/shares/etc., save and restart

    #18782 quote
    fesxeurex
    Participant
    Junior

    Thanks Nicolas

    Ive added condition 4 and 1 easy target

    2. video 1 can you share the script i type with one finger i will take me a week to write that off and test it.

    3/5 Can screener take variable input for Time frame. Timezone changing is difficult manually so i guess it will be tough program wise

    Many Thanks

    #18791 quote
    Nicolas
    Keymaster
    Master

    3/5 you can use TIMEFRAME instruction in ProScreener. When you declare a TIMEFRAME in your screener code, all codes below it will be read and executed in this specific timeframe.

    2. video 1 can you share the script i type with one finger i will take me a week to write that off and test it.

    Sorry, I do not understand what you mean here.

    #18796 quote
    fesxeurex
    Participant
    Junior

    Thanks ill check out this time-frame functions

    i meant the position size calculation done here https://www.youtube.com/watch?v=VXpKcRfo_So

    Cheers

    #18798 quote
    Nicolas
    Keymaster
    Master

    Oh! It is not about position sizing, but about how to draw price round number areas on chart. I’ll post an indicator into the Libray later.

    #18799 quote
    fesxeurex
    Participant
    Junior

    Thanks for clarifying

    the drawing yo have done is it possible on 10.2 to add lines onto the charts

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Bullish Pinbar Help


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
fesxeurex @fesxeurex Participant
Summary

This topic contains 6 replies,
has 2 voices, and was last updated by fesxeurex
9 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 12/19/2016
Status: Active
Attachments: No files
Logo Logo
Loading...