EMA SLOPE

Viewing 15 posts - 16 through 30 (of 30 total)
  • #47345

    PS – does the limithour also turn off the stop loss command?

    I’m forward testing with IGindex and it seems some stop/limit orders are being missed, only to activate days later? Is this an issue with the PRT engine or an IGIndex feed?  The equity curve is erratic over these periods as it seems the take profits orders are not activating. Is this common? So far, I don’t think this PRT within IgIndex is reliable enough for systematic trading it seems?

    #47385

    So if limithour= 1800(00) then the system would not enter any new orders after 1859(59)hrs then?

    Right, because Time instruction return the closing time of the bar while OpenTime returns its open time.

    #47422

    Great thanks Nicolas. But I assume stops/take profit orders would still be able to execute after this? The limit time command only pertains to order openings? Thanks

    #47435

    Of course, if orders are on market and no more pending ones.

    #47531

    Would anyone know how I could code (rather than “hh = highest[23](high)”) command to look for the last swing low/high? Rather than place a trend trade above the HH on [n] bars for example, I would like to enter the trade above the last swing to the left of current price. Would using a zig-zag indicator allow this?

    Many thanks

    #47556
    #47734

    Thanks Nicolas – the second one looks most promising. It seems to be an indicator so how best to incorporate into ProOrder and determine orders above/below please?

    Best

    #47801

    Only need to test where is Close VS pivotH or pivotL, that’s all.

    #49066

    Hi All,

    Just a quick question on the code. I’m trying to define trend using EMAs but also higher highs and lower lows over [n] periods but the code I have created below confuses me. When dealing with minus figures should it be > or < than -1?

    The key parts are trend3>0 and trend6>-1 -is this correct for capturing HH and HL to add to the ema for defining when price is trending?

    Also is my ‘Filter’ correct for capturing EMA sloping up and EMA sloping down? So on H1 if ema2-ema2[1] this asks is ema now higher/lower than ema 1 bar ago, using greater or less than 0 – or should I use as above Filter <-1?

    Many thanks

    #49072

    Your “Filter” variable is a boolean one, which returns 0=False and 1=True so you are now using its value correctly at lines 20 and 21.

    I don’t understand the Trend3 and Trend6 variables, you are just making differences between 2 prices which gives you if the previous highest high 20 bars ago is superior or not to the last period one (same goes for lowest low at lines 9 and 10).

    1 user thanked author for this post.
    #49328

    Hi Nicolas.

     

    Thanks for confirmation on the filter variable.  Regarding the trend3 and trend6, what I’m trying to create is a lower low for downtrend and higher high for uptrend. So rather than just rely on EMA rising or falling I’m asking PRT to see if lowest low 1 bar ago is lower than lowest low 20 bars ago, this proving price is trending down. So if [1] was 12000 and [2] was 14000 it would prove trend6 was lower as 12000-14000 is -2000, thus price is trending down. Vice versa for Trend3 (uptrend) – or is there a better way to ask PRT if price is making higher highs and higher lows for uptrend for example?

     

    Many thanks

    #49685

    Hello

    Another issue with trade times? I have the code below that only allows trading on certain days at or after a certain time, yet PRT keeps taking trades at midnight randomly? Would you know why this is?? Thanks

    and the execution part of the code reads…

    So, as above shows if daytrading=1 and time is less than LimitHour (130000 in this case) why does PRT keep taking live trades at 000000hrs?

     

    Thanks for your help. Final piece of puzzle hopefully

    #49798

    What’s the timeframe? Bear in mind that pending orders still 1 complete bar.

    #49817

    Hi Nicolas. It’s the H1 timeframe. On backtests and live trading the system keeps taking trades on the beginning of new days where it hasn’t traded the day before. Is this linked to part of code below that addresses intraday bar index?

     

    #50493

    Any ideas my dear overworked chap, Nicolas? 😉

Viewing 15 posts - 16 through 30 (of 30 total)

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