Newbie type Questions & Answers

Forums ProRealTime English forum ProOrder support Newbie type Questions & Answers

Viewing 15 posts - 1 through 15 (of 46 total)
  • #125352
    Hi so basically I’m wondering why even thous I’ve coded all my stops to have a trailing stop loss of 100 points I had somewhere between 30-50 trades stopped by a trailing stop after 1 point.
    This is literally have never used pro real time before so I may have done something wrong and have included the code below.
    I’ve been manually setting up all the different strategies i’ve created to buy the stocks they are supposed to one by one in pro order but is there anyway to apply one strategy to a list of different stocks in one go in bulk? Or can I add multiple strategies to one stock in one go?
    Also I started my trading strategy yesterday and set all of my trailing stops to 100 points. Then the algorithms for some reason decided to make all the trailing stops 1point. So I lost around £150 yesterday because the algorithm kept entering trades and then because of the spread being more then 1 point the algorithm would automatically exit the trade. If you look at the duration section of the screenshot all the trades were between 0 seconds and 1 second bar one and I have no idea why that one worked fine.
    So I literally have around 20 trades that was entered and exited in 0 seconds and and around another 30 that was entered and exited within 1 second. So somewhere in and around 50 whole trades that lasted 1 second or less in total even though your software was coded for a stop loss of 100 points.
    An I was trading stocks not forex. So is there any way I could be compensated for all of these 1 second trades?

     

    #125370

    At the time of your exits, what was the minimum stop distance?

    At certain times, IG make minimum stop as 100’s of points.

    You need to test ALL Systems on Demo Live for at least 50 trades before going Real Live.

    I loaded your code into my Demo Live and it does run … see attached

    #125375

    Thanks for the response. With the code it was set to SET STOP pTRAILING 100 but all of the trades was triggered with a trailing stop of only 1 point. I didn’t have any normal stop loss in place. Oh ok didn’t no IG did that. I was happy with the strategy because I used it on quantreex and just recoded it here so I just jumped in. You’re right I should have used the demo mode first.

    Any particular reason or time why makes the minimum stop 100’s of points? So I can see it coming next time. An if the minimum is 100’s and I set my trailing stop to 100, hy does that work out to my stop being only 1? Did you mean 100’s as in plural or one hundredth as in 1/100? An in future i’ll definitely use the demo mode.

    #125378

    IG can set the min stop to something ridiculous like 1079 points … when they don’t want us to trade at times of high volatility.

    But in instances as above your System should have been rejected and the System stopped anyway as that is IG intention … that we can’t place new trades.

    What instrument were you trading on?

    What is the normal min stop on the instrument on which you are trading??

    EDIT / PS

    Wow there’s the reason … the spread on NAK is 200 points so you your stop of 100 didn’t even cover the spread … have you got a death wish?? 🙂

    #125381

    Above can’t be right surely?

    But what is the spread on the Instruments you are trading as a stop less than spread would account for entry and exit in milliseconds.

    Or a very volatile Instrument with an ATR for 1 min TF way in excess of your stop value?

    #125388

    @tradetrade101

    >> For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<

    #125395

    Lool yeah i think you’re spot on with that, the spreads can be really bad but I haven’t seen 200 bad unless it’s not the (DFB) version of the stock. I attached the DFB version of NAK and I think that’s a 2.5 spread currently unless i’m reading it wrong? I tried a few of my other strategies over the past hour or two (which is why i was gone) and they’re working fine with the 100 point trailing stop. So perhaps it was a problem with the strategy I included in my original post or maybe IG was doing the don’t trade it’s high volatility thing but it did do that for around 5 straight hours from 14:30 till around 19:00.

    I thought the same thing about the ATR and went and checked the highs and lows of the one minute bars on entry/exit earlier on but the range didn’t get near the stop losses unless I’m reading it wrong. SO for example in the screenshot I attached i’d describe that as as a 2.5 spread that right?

    At the moment i’m just focusing on the IG trend detection and some custom screeners I made targeting shares US minor, US tech and US wall street and shares UK int and shares UK. An the min stop was slightly different on each one but they ranged from 3-10 points from what I remember. 3 seemed to be the most common, yeah 3 to 4 points was the normal. Is there any more liquid stocks or markets you think would be better? Or do you think forex trading would juts be the best way to go with the auto trading?

    #125396

    Oh an thanks again for the help, it genuinely is much appreciated.

    #125404

    Most of us trade Indexes … DJI and DAX is popular.

    Dax has very low spread, eur/usd has low spread also.

    So you are all sorted now?  Weird problem you had, hope it doesn’t recur.

    PS you mentioned a screen shot but didn’t attach it. 🙂

    #130462

    Hi had a really up and down month with the trading which took all my attention. Funnily enough I naturally gravitated to the DAX myself there was points when it treated me really well. I don’t need to upload the screenshot anymore I understand the spreads fine at the moment. I have built a list of different questions over the month that I thought i’d ask in one go I hope there’s not too many:

    1. Is there anyway to pin any other tabs to always be visible on the screen  like with the file/ display/ trading etc tab. So basically just is there any way to pin other tabs as well?
      Is there anyway to see the MAE and MFE of the trades you’ve executed? You can see them really easily when back testing but for some reason I can only find the drawdown figures of the trades i’ve actually executed.
    2. How do you close all the previous back tests when you hit the back test limit. Even after I close everything it still doesn’t seem to load new backtests sometimes like I’ve hit the 10 back tests limit. Like is there a button or another automatic way to delete all of the currently open back tests?
    3. Also is there a way to stay out of a market only while it has a high spread. So basically a code or setting that says don’t enter the market unless the spread is 3 for instance?
    4. Is there a way to make bulk changes to strategies so for example categorising long and short strategies into two separate groups and giving them a weighting so like 60% of your strategies 60% have to be long and 40% short for example.
    5. There are some indicators that I have placed on the graph but I can’t seem to import into my strategies. So for example there’s an elastic volume weighted moving average indicator that I can display on charts but when I click add the indicator it won’t add it as a entry or exit trigger. Is there a way to add these indicators to your algorithms as entry/exit parameters?
    6. Also in pro order is there a way to edit the live strategies in pro order without deleting them and creating new ones? So for example at the moment just to adjust some stop losses I have to stop the strategies I want to adjust, make the edit, add the duplicate strategies to pro order and then add then start the new ones and with up to 100 strategies that would take forever. Alternatively is there a way to just pause the strategies and edit them in strategy coding section and then have the strategies I paused automatically be edited with the updated version?
    7. Also in pro back test even though I have a code that says only enter the market if the current open positions are under 2 it displays 6 positions on a one minute candle sometimes all with the same entry price and entry time. So does pro back test ignore the code and just present you with all the times your strategy would’ve triggered an entry or is there something wrong with my code so pro back test doesn’t know to limit the orders per entry to less then 2?

     

    I’ve attached the code that I’m back testing with.

     

    #130500

    How do you close all the previous back tests when you hit the back test limit. Even after I close everything it still doesn’t seem to load new backtests sometimes like I’ve hit the 10 back tests limit. Like is there a button or another automatic way to delete all of the currently open back tests?

    Wow 10 backtests at once?

    I find that only one backtest runs at a time anyway (then when finished another starts) so is there any point starting 10 at once?

    Maybe you set 10 going then go to bed?? 🙂

     

    Re … it still doesn’t seem to load new backtests … I suggest you go File, Quit, say YES to Save and then log back in.

    #130504

    is there a way to just pause the strategies and edit them in strategy coding section and then have the strategies I paused automatically be edited with the updated version?

    No very unfortunately … but please suggest it to PRT on the link below as we would all love to to have that facility! 🙂

    https://www.prorealtime.com/en/contact?suggestion=1

     

    1 user thanked author for this post.
    #130505

    with all the times your strategy would’ve triggered an entry

    Try below and let us know if it worked

     

    #130507

    Is there a way to add these indicators to your algorithms as entry/exit parameters?

    You probably need to hard code them into your strategy as some are not allowed via the Simplified Creation Tool.

     

    #130509

    Is there anyway to see the MAE and MFE of the trades you’ve executed?

    Try these from Log 88 and Log 213 in the Snippet Library

    Snippet Link Library

    https://www.prorealcode.com/topic/mae-and-mfe-calculator/

    https://www.prorealcode.com/topic/mae-and-mfe-calculator/#post-77327

    1 user thanked author for this post.
Viewing 15 posts - 1 through 15 (of 46 total)

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