Steven Primo Indicator to Strategy

Forums ProRealTime English forum ProOrder support Steven Primo Indicator to Strategy

Viewing 13 posts - 1 through 13 (of 13 total)
  • #223217

    Hi everyone, after a lot of work i finaly converted the Steven Primo bollinger Bands indicator from Tradingview to a prorealcode indicator and added some features.

    i just want to convert this indicator in an autmated Strategy, if you can help, here is the code and i upload the indicator itf

     

     

    #223223

    Yes please, attach the ITF file, if possible.

     

    #223228

    Ah sorry, i thought it was already in, here is it

    #223234

    i try again

    #223364

    There you go:

     

    #223368

    Thank you for the answer and the work, but the Stops and Targets are not in %, they have to be like in the indicator, with the last Swing Low or High.

    how do i change it, i can send you the original Indicator in tradingview.

     

    #223371

    It’s just an example. You can change it as you like.

    If you post the conditions to enter Long and Short trades, to set SL and TP, I will code them.

     

    #223607

    From the Line 69 you can see that both Target and Stoploss are based on the Pivothigh or Pivotlow calculated with the variable xperiod that i can changed; here is the code from line 69:

     

     

    #223609

    When you enter Long, the Stoploss is set to the last Swing Low and the Target is set to the same distance of the Stoploss.

    Here i set the “xperiod” to be adjustable to change the Stoploss as i want.

     

    thank you

    #223610

    Here is the picture

    #224730

    The indicator does not plot and does not return any value for pivots, just the bands and signals.

    I coded the Pivot points inside the strategy:

    #224750

    Hi Roberto, thank you for your help.

    Can you explain to me the meaning of the line 3 of your last code? “CALL” function

    Thank you

    #224768

    CALL is the instruction to get data from indicators.

    Indicators receive the data to make calculations in square brackets, those data must match the number of variables declared in the indicator.

    The variables to the left of the “=” (assignment operator) are the place where data RETURNed from indicator is stored (they must be in the same order order as they are written next to RETURN, though their names can be different from those in the indicator).

     

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

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