Screener result – limit to present/ongoing period results

Forums ProRealTime English forum ProScreener support Screener result – limit to present/ongoing period results

  • This topic has 5 replies, 2 voices, and was last updated 6 years ago by avatarPer.
Viewing 6 posts - 1 through 6 (of 6 total)
  • #40305
    Per

    Request for assistance, after unsuccessful search in manuals etc.

     

    My challenge: As screening for triggers in real time (week & daily charts), the result list findings/triggers from the past which is not interesting.

    As  I am using the screener to notify me for trigger to trade in present (now), I have the following Question: How can the results/findings be limited to present covering the bars involved, (as for indicators >defparam DRAWONLASTBARONLY = TRUE) to apply screeners to pop up my triggers in the list as they comply with my criteria’s in present only?

    Help will be appreciated with thanks.

    See enclosed list where triggers listed are obsolete, days and week back in time! (note. the clock column is the time when screener started this morning)

    Per Hovden

    #40326

    The results you get from the screener window depend of your code. If you flag a variable to 1 because your conditions are met, you also need to set it to 0 when they are not, otherwise at the end of the history load, the result will still be true and you’ll get old results.

     

    #40340
    Per

    Thanks Nicolas,

     

    Based on your reply, I reviewed a few screeners presented on this site and found examples of | Variable: else > Position = 0 | This is aligned with my code, however I am not sure if I interpret correctly?

    For simplicity, if you have an example code it will be helpful or simply add it to the code. Whatever is to your preference.

    Tanks again.

    Per


    My code:


     

    #40448

    I changed the code to be faster in its calculation, it works but I can only find stocks with Position=-1, so there must be something not good in your bullish conditions, but don’t know what sorry! 🙂

     

    #40449

    I found why, I changed the close CROSSES OVER in the bullish condition, here is my code with your initial condition for the cross (now found +1 Position):

     

    1 user thanked author for this post.
    #40485
    Per

    This is a great improvement.

    11 results found within all forex pairs provided by PRT. 2 findings on weekly charts. I am applying the same combination for Indicators, which now correlates with the findings in present by the screener.

    I will add that by entering trade at crossing back over yesterday high/low, adding SL at today high/low this is a one bar (daily chart) trading strategy. With some guts, go trailing stop loss at entry on the next bar and cross the fingers, it may be the start of a lasting trend and success in caching the famous falling knife (and/or opposite). This will be studied by back testing and paper trading scripts. ps. ensure that momentums are right.

    Appreciated and great thanks,

    Per I

Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login