Newbee question about plotting results on charts

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #47930 quote
    George65
    Participant
    Senior

    Hello everyone,

    I’m new here. Could anyone help please, how can I code, if I want to make a marker (for instance arrow) if the screener could find a defined setup?! I have two conditions in the code (c1 and c2). If these are met, I’d like to have an arrow up on the last bar of the setup.

    Is it an ‘IF’ ‘THEN’ instruction?

    Or ‘defparam’?

    Sorry if this is a too simple question for the Pros!

    Thank you so much!

    #47958 quote
    robertogozzi
    Moderator
    Master

    A screener cannot display on charts, it only scans charts to check if your conditions are met or not.

    You should use an indicator  and add it over the price chart, not below, (in ProBuilder) to achieve your goals, like this one:

    DEFPARAM CalculateOnLastBars = 200
    offset = 10 * pipsize                                       //distance from price to display ARROWs
    if close < open then
       DRAWARROWDOWN(barindex, high + offset) coloured(255,0,0)
    elsif close > open then
       DRAWARROWUP(barindex,   low  - offset) coloured(0,255,0)
    endif
    return

    Here you can find further info and examples https://www.prorealcode.com/blog/learning/simple-indicators-dashboard/.

    Roberto

    Nicolas thanked this post
    #47966 quote
    George65
    Participant
    Senior

    Thank you Roberto, I’ll study.

    Have a nice day!

    #48398 quote
    George65
    Participant
    Senior

    Dear Roberto,

    I’ve tried. But it always appears below the chart. What should I do that it will be in the chart?

    Thanks

    George

    #48399 quote
    Nicolas
    Keymaster
    Master

    Add it on your price instead, use the wrench on the left upper side of the price chart.

    #48404 quote
    George65
    Participant
    Senior

    Thanks Nicolas, make a try

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

Newbee question about plotting results on charts


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
George65 @george65 Participant
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by George65
8 years, 4 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 10/01/2017
Status: Active
Attachments: 1 files
Logo Logo
Loading...