Onmarket in Proscreener

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #93486 quote
    marcara
    Participant
    Average

    Hi, I would like to use Onmarket or longtomarket in proscreener.

    How can I do it?

     

    Thanks in advance

    #93487 quote
    Vonasi
    Moderator
    Master

    A screener is just a check that conditions have been met on a list of instruments. You cannot be on market unless you simulate a strategy and then use the conditions to decide whether that simulated strategy would have been on a market or not on a market at any moment in time. Not sure why you would want to though?

    #93528 quote
    marcara
    Participant
    Average

    Thanks for your answer.

    It is a sccreener that check some conditions in order to close positions if you are on the market, so I would like the screener only in the ONmarket.

    #93530 quote
    Vonasi
    Moderator
    Master

    I’m not big on screeners but perhaps you could code an indicator that simulates your strategy and returns a flag that is 1 or zero if on or off the market. Then CALL the indicator from your screener and use the flag value as a condition to be met.

    #93535 quote
    marcara
    Participant
    Average

    Perfect, Good Idea. I will try to do. I’ll post the solution.

    #93555 quote
    marcara
    Participant
    Average

    Hi,

     

    I have tried tje indicator with no luck; I can not use the onmarket instruction in the indicator. So, I can not check when the product is on market.

    #93570 quote
    Vonasi
    Moderator
    Master

    You don’t use ONMARKET in the indicator. Something more like this is what I was suggesting:

    if flag = 0 and (my entry conditions) then
    flag = 1
    endif
    
    if flag = 1 and (my exit conditions) then
    flag = 0
    endif
    
    return flag
    #93597 quote
    marcara
    Participant
    Average

    Thank you very much. The entry conditions are not possible to code. The entry takes into account some conditions but the I decide depending on fundamentals if the entry is valid or not. So I can not code it.

    #93601 quote
    Vonasi
    Moderator
    Master

    The entry takes into account some conditions but the I decide depending on fundamentals if the entry is valid or not. So I can not code it.

    Sorry to hear that as it was an interesting new idea having a screener screen for exits rather than entries. Maybe an idea for another strategy at another time!

    #93653 quote
    marcara
    Participant
    Average

    The only idea that I found is creating a list with the products that are on market and then the screener will check only onmarket list.

    It implies a manual job but It is the best I found.

     

    Any other solution will be appreciatted,

    #93707 quote
    GraHal
    Participant
    Master

    If your conditions can be set up using the IG Indicator Alert then you may be able to achieve a compromise solution?

    I often used the IG Alert on my phone when manual trading and away from my PC screen, even when going to the toilet! 🙂

    Alert.jpg Alert.jpg
    #93712 quote
    Vonasi
    Moderator
    Master

    even when going to the toilet!

    TMI!

    GraHal thanked this post
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Onmarket in Proscreener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
marcara @marcara Participant
Summary

This topic contains 11 replies,
has 3 voices, and was last updated by Vonasi
7 years, 6 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 03/12/2019
Status: Active
Attachments: 1 files
Logo Logo
Loading...