Newbie type Questions & Answers
Forums › ProRealTime English forum › ProOrder support › Newbie type Questions & Answers
- This topic has 45 replies, 5 voices, and was last updated 4 years ago by tradetrader101.
-
-
05/09/2020 at 2:01 PM #130753
Hey tradetrader101 if you state / post you agree to below (or an alternative?) then the Mods will change the title of this Topic … as it is has not been related to trading stop problem since after the first 2 or 3 posts??
Other Newbies will benefit then as when they search they will see the more meaningful Topic title below
Mods please change title of this Topic to …
Newbie type Questions & Answers
05/09/2020 at 2:25 PM #13075805/10/2020 at 5:35 PM #130972Thanks I’ll just keep logging in and out whenever the back test issue happens then.
An that’s what I thought would happen when long reverse into short strategies, if things go well and you’re in the market 99% of the time then that should equal more profits.
Plus if you short a market you are already long on you are using way less margin over shorting a market you’re not long on and the trade you placed short isn’t any less likely to succeed just because you a short both trades could eventually be profitable.
“Trouble is that profitable trade, made during simulated trades” that’s not an issue with me personally I have the same points (take profit) for every strategy I have. So the same take profit, same stop loss and same steps and then I just the profit factor uniformly depending on the market conditions.
So it could make a million I don’t care lol just give me my £25 or £40 or whatever per trade and as long as I win a certain percentage of the time I’m good. I find this evens out the drawdowns as well as it really helps in ranging markets. The amount of times in even down markets a price goes up 8 points before falling can be significant income with smaller take profits (that’s if you can keep getting in at a the bottom of the range).
I’m like that too, I never delete anything. I always feel like you could remix your worst strategy into your best one day or it could be perfect for a future market condition.
Well if you have it then it’s part of your intellectual property and people did put them on here to share 🙂
So with the 4,877 you tried on the Nikkei what would you class as consistent profitable strategy that you haven’t found? So would that be consistent profitable for a week, a month a year? How long has your best algo on the Nikkei been consistent profitable for?
I tried 4 of mine on the Nikkei and it says on Friday my best one would’ve made 6.5k from a 10k start so 16.5k and the one I added that you looked would’ve made 1.6k from a 10k start on Friday so 11.6k. So who knows how long that would be profitable on there for but at least for the moment it looks like I’ve got two strategies that may crossover well.
I’m still waiting for IG Sponsored by Pro Real Time to get approved once that’s done I’ll have access to more then one day of back testing on 1 minute charts and I can create some strategies specifically for the Nikkei but for the mean time it looks like there’s potential there.
But with all of these people on the forum trying, isn’t there someone who found a consistently profitable algo for the Nikkei who’s selling it? Isn’t that what the market place is for? Or does no one claim to have cracked the constantly profitable code on it yet? Or are their codes only profitable for short periods?
“Do strategies created on quantreex work on PRT??”
Nope not at all but I’ve found that quantreex is the best place to create strategies minus them having way less indicators purely based on the fact you back test 150 strategies on 1 stock at the click of a button or 150 stocks on 1 strategy. So even bad strategies tend to do ok on 1 in 150 stocks and then within around 10 minute for me (or however long it takes you to copy and paste 150 new tickers 10 different times) you could test each strategy on 1,500 different instruments.
So you Get a Much better overview of how well your strategy works. So the amount of times I;ll be testing a strategy on one instrument and then it works poorly on that but amazing on another one of the 150 so you stick with something and improve something that I would’ve assumed was terrible or useless if I was just back testing one instrument.
I then code all my algos from quantreex into Pro Real Time myself. Quantreex has a limit it can only connect 15 algos at a time to IG Markets. I really like there optimismation feature as well maybe pro real times one is better however I haven’t tried it yet.
“I run each strategy on 4-6 different instruments at once and all with an equal amount of pips on each one.”
I mean when live trading I run each strategy on 4-6 different instruments at once. So the strategy you looked at that I messaged you I take my overall trading budget and spread it evenly across 4-6 instruments. So for example 1 strategy £1/pip FTSE, same strategy £1/pip S&P, same strategy £1/pip DAX, £1/pip DJI, etc So the sum of my results is always the average of how those 4-6 instruments performed during the day. That’s how I’m trying to avoid drawdown.
It’s best to pick totally uncorrelated markets but I haven’t checked how correlated these markets are yet because I only started live trading again last week. So far I’ve only coded over 4 of the around 30-40 strategies I have in quantreex over to Pro Real Time so I’d assume/hope at least 3-4 of my best 5 performing strategies are still just sitting in quantreex.
“What you mean equal amount of pips? Pips are movement in price, so 4 strategies on 4 instruments cant make the same pips / profit”
Yeah but one strategy that I apply to 4 different instruments. So they all will have the same PIP/profit target. So obviously so could’ve made more then the target but other days they may not hit more then the profit and cost you money. So I’d rather be under the optimal profit target and aim for consistent as possible returns.
Sorry what does “flashed it over (imperfect term)” mean? I didn’t get that.
“Yes we can use £0.2 per point / pip on UK spreadbet on DJI for example”
How? Would I have to edit that in the code instead of pro order? So instead of “BUY 1 PERPOINT AT MARKET” I’d say “BUY 0.2 PERPOINT AT MARKET” and that’ll work?
That makes thing so much easier as the DJI was the 3rd or 4th most consistent performer in the backtesting over a 30 day period.
“I hope you are doing all your testing / trials on a Demo Account for many months or at least 50 trades, preferable more?”
Nope I know that’s best to start with a demo account but I ran earlier versions of all these algos live for a whole month about a year ago via quantreex they all roughly broke even but I stopped because you can’t optimise the 17 strategies I had at the time when you can only run 15 in parallel. Then I was supposed to learn Pro Real Time straight after that but just never found the time to learn the Pro Real Time codes and software in general until last month.
So I have full confidence in older versions at least historically breaking even on quantreex so I dived straight in to live trading with the better versions here.
Plus I’ve read articles of the discrepancies between live and demo trading. Demo trades tend to be slightly skewed in your favour with slippage etc even timing wise the demo accounts hosted on a different server so the trades aren’t identical to the trades you’d make live. This doesn’t sound much but with take profits and stop losses over periods of time it all can really add up.
An yes I’m paying £75 for quantreex and I’m about to start paying $135 for Yewno their machine and stock features are really informative. It gives you a list of stocks that are effected by any one factor. So all the stocks 5g could influence or Elon Musk could influence etc. I might end up paying for Metastock and Refinitiv as a package as well. Refinitiv use news from Reuters which is probably only second to the Bloomberg Terminal on the planet.
I love the look of Meta Stock forecasting feature, I haven’t tried it yet however. Also Yewno have a patent feature that lists all the patents in a industry companies have applied for which I may try and combine with some options strategies.
I’ve never minded paying for information I’ve read and took detailed notes from like 30 books on investing, the stock market and options trading, quant trading and hours and hours of videos on day trading. Then I turned half of those notes into audio books that I listen too from time to time lol
So is there a way to keep algos open if they have a trade rejected for insufficient funds? Every time I go to sleep I seem to wake up to rejected trades I know I could just put more money in the account but is there a way to keep the algos live even after a trade has been rejected?
How do you set up a stop loss on your whole account or on a strategy that stops all strategies when your overall account is down like £500 for the day or something?
Also I get what you’re saying about entering at the most logical time but the easiest counter to that from personal experience so far is making the entry point less relevant by just lowering your take profit levels. It’s way easier to find a lower take profit level that does just as well financially by winning more often then it is to find a strategy that always enters at the logical point especially with evolving market conditions.
I’m going to test out the trailing stop and see if it improves things. Thanks for sharing it and for taking the time to get back to me 🙂
1 user thanked author for this post.
05/10/2020 at 5:44 PM #130978Thanks for sharing all that, I eagerly await your next novel. 😉
05/10/2020 at 5:52 PM #130981😂 I actually tried to delete it, I’m pretty sure it’s in the wrong place after all that.
😂 Definitely a pt.2 on the way. An I am going to ask every question I can till I’m back stroking in money. BELIEVE ME!!! 😂😂😂05/10/2020 at 5:54 PM #130982Actually this was the write place, I feel better now lol
05/10/2020 at 7:37 PM #131006Actually this was the write place,
Yeah … glad you found your literary repository! 🙂
I had vision of you thinking … well eff me they’ve deleted all my work!!!! 🙂 🙂
05/10/2020 at 8:04 PM #131015BUY 1 PERPOINT AT MARKET” I’d say “BUY 0.2 PERPOINT AT MARKET” and that’ll work?
Yes
So with the 4,877 you tried on the Nikkei
I never said that.
It is 4,877 tried on about 10 Instruments and a few more tried now and again.
Then I turned half of those notes into audio books that I listen too from time to time lol
You should put them on Youtube … you might make money from google ads etc
is there a way to keep algos open if they have a trade rejected for insufficient funds?
No apart from lodge any shares you own as collateral and a percentage of their current price will be taken into account as more funds.
strategy that stops all strategies when your overall account is down like £500 for the day or something?
Monitor (every hour) the ‘Detailed Report’ (under View) for a particular Platform and stop your strategies when getting close to £500 Loss for the Day.
05/10/2020 at 9:35 PM #131032Actually this was the write place
The right place for a place to write.
05/13/2020 at 12:59 PM #131497😂 I copied it over from iPages so I technically had a copy (with cmd + c) but I was definitely a bit confused for a second. Thanks for not deleting it 🙂.
“4,877 tried on about 10 Instruments and a few more tried now and again”
Oh ok that makes sense, sorry for the misunderstanding. So do you only trade one instrument and one strategy at a time? Or multiple instruments with one strategy? Multiple strategies with one instrument? Or multiple strategies with multiple instruments at a time? Also do you ever trade stocks or just forex and indices?
“No apart from lodge any shares you own as collateral and a percentage of their current price will be taken into account as more funds.”
So how would I do this? That sounds great. An are you talking about the shares I already have in live trades in IG Markets?
Thanks for the YouTube/audio book suggestion, genuinely think I’ll do that.
An I’ve got a sponsored by pro real time account approved (and it was the same with my normal IG Markets account) but with strategies with 1 minute parameters it only allows me to get 1-2 days of back testing data is the normal or am I doing something wrong? How is everyone back testing strategies with any 1minute parameters if they can only see how it did in the last 2 days?
Also things have been pretty turbulent lately with market swings particularly with European indices. So with this in mind do you think long/short combined strategies would be best right now? Or maybe just stricter entry requirements to keep you away from fake breakouts? Also the fear this is causing also leads to sideways trading sometimes. So does anyone have any good code or indicators in general that are good at keeping you out of sideways trading markets? Or scalping strategies to benefit from sideways trading?
05/13/2020 at 1:35 PM #131499So do you only trade one instrument and one strategy at a time?
I did have 3 to 5 Auto-Systems on £0.2 per point each … most on the DJI due to large Daily ATR.
This week I have all Systems switched off Real Live as all I was doing was making up the losses on Auto-Systems by manual trading! Demoralising?
I am going through a ‘ not trust Algo’s phase’ again! 🙂So how would I do this?
https://www.ig.com/uk/help-and-support/investments/share-dealing-and-isas/how-do-i-set-up-collateral
genuinely think I’ll do that.
Let us know when you do … I’ll have a listen! 🙂
How is everyone back testing strategies with any 1minute parameters if they can only see how it did in the last 2 days?
With frustration! 🙂 But you should get about a week on 1 min TF?
2 days sounds more like sub 1 min (seconds) TF?Or maybe just stricter entry requirements to keep you away from fake breakouts?
I can’t see much of a game changer until we get v11 and arrays? But even then how many of us are capable of coding with arrays? We need Elliott Waves to be taken account of as that is how markets move.
I’m kinda hoping there may some good Algo’s for sale (at a reasonable price) on Nicolas Market Place when it gets up and running?
05/13/2020 at 1:47 PM #131501How do you set up a stop loss on your whole account or on a strategy that stops all strategies when your overall account is down like £500 for the day or something?
Vonasi wrote a Money Management code you might like. There’s a variable fuse to stop the strategy after x% drawdown.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556//MONEY MANAGEMENTCapital = 10000MinSize = 1 //The minimum position size allowed for the instrument.MM1stType = 0 //Starting type of moneymanagement. Set to 0 for level stakes. Set to 1 for increasing stake size as profits increase and decreasing stake size as profits decrease. Set to 2 for increasing stake size as profits increase with stake size never being decreased.MM2ndType = 1 //Type of money management to switch to after TradesQtyForSwitch number of trades and ProfitNeededForSwitch profit has occurredTradesQtyForSwitch = 10 //Quantity of trades required before switching to second money management choice.ProfitNeededForSwitch = 3 //% profit needed before allowing a money management type change to MM2ndType.DrawdownNeededToSwitch = 5 //% draw down from max equity needed before money management type is changed back to MM1stType.DrawdownNeededToQuit = 25 //% draw down from max equity needed to stop strategyOnce MoneyManagement = MM1stTypeEquity = Capital + StrategyProfitmaxequity = max(equity,maxequity)if equity < maxequity * (1 - (DrawdownNeededToSwitch/100)) thenenoughtrades = 0tradecount = 0moneymanagement = MM1stTypeendifif equity < maxequity * (1 - (DrawdownNeededToQuit/100)) thenquitendifif not EnoughTrades thenif abs(countofposition) > abs(countofposition[1]) thentradecount = tradecount + 1endifif tradecount > TradesQtyForSwitch and maxequity >= Capital * (1 + (ProfitNeededForSwitch/100)) thenEnoughTrades = 1MoneyManagement = MM2ndTypeendifendifIF MoneyManagement = 1 THENPositionSize = Max(MinSize, Equity * (MinSize/Capital))ENDIFIF MoneyManagement = 2 THENPositionSize = Max(LastSize, Equity * (MinSize/Capital))LastSize = PositionSizeENDIFIF MoneyManagement <> 1 and MoneyManagement <> 2 THENPositionSize = MinSizeENDIFPositionSize = Round(PositionSize*100)PositionSize = PositionSize/100// Size of POSITIONSPositionSizeLong = 1 * positionsizePositionSizeShort = 1 * positionsize1 user thanked author for this post.
05/23/2020 at 12:47 AM #132909“Making up the losses on Auto-Systems by manual trading!”
Sorry to hear that but manual trading is a great skill to have. On the bright side at least you have that option. So are unprofitable weeks common for you (and algos in general) like for example every 2 months etc or is it because the market is particularly turbulent because of the pandemic? I started the algos around 3 weeks ago so I’m really not sure if it’s harder to be profitable at the moment or easier because of the volatility?
“With frustration! 🙂 But you should get about a week on 1 min TF?
2 days sounds more like sub 1 min (seconds) TF?”Not sure what you mean by TF? I’m getting 2 days max. I even opened a sponsored by pro real time account and still only get 2 days. I’m going to e-mail them and hopefully they can sort it out.
“I can’t see much of a game changer until we get v11 and arrays?”
Any clue as to when roughly that’s likely to come out?
I’ll give the Vonasi code a try. Thanks for that.
“I’m kinda hoping there may some good Algo’s for sale (at a reasonable price) on Nicolas Market Place when it gets up and running?”
MetaTrader seems to have loads. I would’ve thought quite a fe of those would’ve been coded over to pro real time? If I want to get some coded over myself how do I do that via pro real code team/coding support? An is it expensive?
Also would any of the Elliot waves and array limitations matter when coding over MetaTrader algos to pro real time?
An so are you saying with all the people on the platform at the moment no one is trying to sell algos at the moment? Couldn’t this forum or a Pro Real Time Facebook group be a market of sorts for people to buy/sell algos until the Real one is up? Or is that against the forum rules?
05/23/2020 at 1:11 AM #132910Also could I get some help with some code?
Basically there’s a few things I may have coded wrong.
Equity Stop123IF NOT ONMARKET AND (PositionPerf(1) + PositionPerf(2) + PositionPerf(3) + PositionPerf(4)) < -100 OR STRATEGYPROFIT < -100 THENQUITENDIFDoes this part stop the strategy if it loses 100 points (which could be £500) or does it stop it even if it loses 20 points but I’m £100 down?
Level Multiples1234567891011121314151617//trailing stop function (make equal to absolute value when trailing stop and absolute value)IF CountOfPosition < 2 AND ONMARKET AND PositionPerf(1) > 0 THEN//trailing will start @trailinstart points profitTRSTART = (ATR*0.50)*40//trailing step to move the "stoploss"TRSTEP = (ATR*0.50)*4// Target profit = S*TTKPROFIT = (ATR*0.50)*16ENDIFIF CountOfPosition < 2 AND ONMARKET AND PositionPerf(1) <= 0 THEN//trailing will start @trailinstart points profitTRSTART = (ATR*0.25)*40//trailing step to move the "stoploss"TRSTEP = (ATR*0.25)*4// Target profit = S*TTKPROFIT = (ATR*0.25)*16ENDIFDoes this part say only use (ATR*0.50) when the last trade won but if it’s breakeven or under then use (ATR*0.25) instead as a multiple for TRSTART, TKPROFIT AND TRSTEP? An if not how do I say that?
Initiate 2nd Order12345678//within reach of the take profitIF Close-TRADEPRICE(1)>(TKPROFIT*0.9) AND CountOfPosition < 3 AND LONGONMARKET THENBUY 1 PERPOINT AT MARKETENDIFIF TRADEPRICE(1)-Close>(TKPROFIT*0.9) AND CountOfPosition < 3 AND SHORTONMARKET THENSELLSHORT 1 PERPOINT AT MARKETENDIFAlso does this code say when the Price reaches 90% of the original take profit level then buy and/or short sell a 2nd share? An if not how would I say that? I’ve tried but it doesn’t seem to be working. Also could you also help me with a version of this that says the exact same thing but to buy and/or short sell a second share when the price is within 6 points of the original take profit level.
<pre class=”lang:probuilder decode:true” title=”3 Things”>DEFPARAM CumulateOrders = True // Cumulating positions deactivated
ATR = AverageTrueRange[186]
//take profit
SET TARGET pPROFIT TKPROFITIF NOT ONMARKET AND (PositionPerf(1) + PositionPerf(2) + PositionPerf(3) + PositionPerf(4)) < -100 OR STRATEGYPROFIT < -100 THEN
QUIT
ENDIF//trailing stop function (make equal to absolute value when trailing stop and absolute value)
IF CountOfPosition < 2 AND ONMARKET AND PositionPerf(1) > 0 THEN
//trailing will start @trailinstart points profit
TRSTART = (ATR*0.50)*40
//trailing step to move the “stoploss”
TRSTEP = (ATR*0.50)*4
// Target profit = S*T
TKPROFIT = (ATR*0.50)*16
ENDIF
IF CountOfPosition < 2 AND ONMARKET AND PositionPerf(1) <= 0 THEN
//trailing will start @trailinstart points profit
TRSTART = (ATR*0.25)*40
//trailing step to move the “stoploss”
TRSTEP = (ATR*0.25)*4
// Target profit = S*T
TKPROFIT = (ATR*0.25)*16
ENDIF//reset the stoploss value
IF NOT ONMARKET THEN
SPLOSS = 0
ENDIF//manage long positions
IF LONGONMARKET THEN//first move (breakeven)
IF SPLOSS = 0 AND close-TradePrice(1)>=TRSTART THEN
SPLOSS = TradePrice(1)+TRSTEP
ENDIF//next moves
IF SPLOSS > 0 AND close-SPLOSS>TRSTEP THEN
SPLOSS = SPLOSS+TRSTEP
ENDIF
ENDIF//manage short positions
IF SHORTONMARKET THEN
//first move (breakeven)
IF SPLOSS = 0 AND TradePrice(1)-close>=TRSTART THEN
SPLOSS = TradePrice(1)-TRSTEP
ENDIF//next moves
IF SPLOSS> 0 AND SPLOSS-close>TRSTEP THEN
SPLOSS = SPLOSS-TRSTEP
ENDIF
ENDIF//stop order to exit the positions
IF SPLOSS > 0 THEN
SELL AT SPLOSS STOP
EXITSHORT AT SPLOSS STOP
ENDIF//put the first stoploss
IF ONMARKET AND SPLOSS = 0 THEN
SET STOP pTRAILING TRSTART
ENDIF//within reach of the take profit
IF Close-TRADEPRICE(1)>(TKPROFIT*0.9) AND CountOfPosition < 3 AND LONGONMARKET THEN
BUY 1 PERPOINT AT MARKET
ENDIFIF TRADEPRICE(1)-Close>(TKPROFIT*0.9) AND CountOfPosition < 3 AND SHORTONMARKET THEN
SELLSHORT 1 PERPOINT AT MARKET
ENDIF05/23/2020 at 1:20 AM #132911All Combined1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980DEFPARAM CumulateOrders = True // Cumulating positions deactivatedATR = AverageTrueRange[186]//take profitSET TARGET pPROFIT TKPROFITIF NOT ONMARKET AND (PositionPerf(1) + PositionPerf(2) + PositionPerf(3) + PositionPerf(4)) < -100 OR STRATEGYPROFIT < -100 THENQUITENDIF//trailing stop function (make equal to absolute value when trailing stop and absolute value)IF CountOfPosition < 2 AND ONMARKET AND PositionPerf(1) > 0 THEN//trailing will start @trailinstart points profitTRSTART = (ATR*0.50)*40//trailing step to move the "stoploss"TRSTEP = (ATR*0.50)*4// Target profit = S*TTKPROFIT = (ATR*0.50)*16ENDIFIF CountOfPosition < 2 AND ONMARKET AND PositionPerf(1) <= 0 THEN//trailing will start @trailinstart points profitTRSTART = (ATR*0.25)*40//trailing step to move the "stoploss"TRSTEP = (ATR*0.25)*4// Target profit = S*TTKPROFIT = (ATR*0.25)*16ENDIF//reset the stoploss valueIF NOT ONMARKET THENSPLOSS = 0ENDIF//manage long positionsIF LONGONMARKET THEN//first move (breakeven)IF SPLOSS = 0 AND close-TradePrice(1)>=TRSTART THENSPLOSS = TradePrice(1)+TRSTEPENDIF//next movesIF SPLOSS > 0 AND close-SPLOSS>TRSTEP THENSPLOSS = SPLOSS+TRSTEPENDIFENDIF//manage short positionsIF SHORTONMARKET THEN//first move (breakeven)IF SPLOSS = 0 AND TradePrice(1)-close>=TRSTART THENSPLOSS = TradePrice(1)-TRSTEPENDIF//next movesIF SPLOSS> 0 AND SPLOSS-close>TRSTEP THENSPLOSS = SPLOSS-TRSTEPENDIFENDIF//stop order to exit the positionsIF SPLOSS > 0 THENSELL AT SPLOSS STOPEXITSHORT AT SPLOSS STOPENDIF//put the first stoplossIF ONMARKET AND SPLOSS = 0 THENSET STOP pTRAILING TRSTARTENDIF//within reach of the take profitIF Close-TRADEPRICE(1)>(TKPROFIT*0.9) AND CountOfPosition < 3 AND LONGONMARKET THENBUY 1 PERPOINT AT MARKETENDIFIF TRADEPRICE(1)-Close>(TKPROFIT*0.9) AND CountOfPosition < 3 AND SHORTONMARKET THENSELLSHORT 1 PERPOINT AT MARKETENDIF -
AuthorPosts