Search found 47 matches

by ScottishSpeculator
24 Jun 2023
Forum: MultiCharts
Topic: ATR vs Std Dev debate. What's better
Replies: 1
Views: 344

ATR vs Std Dev debate. What's better

Hello all , Wondering if anyone has any idea what if any advantages Std Dev has over ATR for measuring volatility and risk? (Including using for stop-loss/position sizing). I personally can't think of any . Currently writing a piece on risk and it popped into my head. I think ATR is better for tradi...
by ScottishSpeculator
20 Mar 2023
Forum: MultiCharts
Topic: How to code one trade a day or...
Replies: 9
Views: 1117

Re: How to code one trade a day or...

Zanna Was playing around with this function today "limit losing trades" and got the start of something which appears to work. Need to double-check works on diff instruments/timeframes but you can make a function like this below. A counter and then create a "loss_per_day" input value that you can use...
by ScottishSpeculator
19 Mar 2023
Forum: MultiCharts
Topic: About RateofChange Documentation
Replies: 6
Views: 674

Re: About RateofChange Documentation

LW , not sure what you mean with your reply? you said there was no wiki page for rate of change , I am saying there is see link

https://www.multicharts.com/trading-sof ... ate_of_Chg
by ScottishSpeculator
18 Mar 2023
Forum: MultiCharts
Topic: Keeping SetStopLoss Static.
Replies: 5
Views: 654

Re: Keeping SetStopLoss Static.

Tobouss /Eric I think setstoploss takes a dollar amount in () for total position as defaut. I know ATR is like dollar value but I think you need to state SetStopShare; SetStopLoss( ATRStopLossValue ) ; Also if your interested I am trying to set up a telegram group/ maybe discord in which people new ...
by ScottishSpeculator
18 Mar 2023
Forum: MultiCharts
Topic: Initialize Variables with a number in front
Replies: 1
Views: 260

Re: Initialize Variables with a number in front

joebone I believe error is probably “Invalid variable name.”? The PowerEditor displays this error whenever it finds an invalid name in a variable declaration statement. Variable names cannot start with a number or any special character other than the underline _ just use one_My_variable Also if your...
by ScottishSpeculator
18 Mar 2023
Forum: MultiCharts
Topic: Position Sizing for Currency Crosses
Replies: 1
Views: 259

Re: Position Sizing for Currency Crosses

Another trader , I think you can use convert_currency function see link. I read Also if your interested I am trying to set up a telegram group/ maybe discord in which people new to MC can share strategy code or come together to upvote ideas and get them build by professional for super cheap per pers...
by ScottishSpeculator
17 Mar 2023
Forum: MultiCharts
Topic: Walk forward /Matrix explained for an idiot
Replies: 13
Views: 1890

Re: Walk forward /Matrix explained for an idiot

o2cool, sure but you would always keep some OOS data at the end to run on or see how it performs before going live. I feel a monte carlo showing median values or max/min of potential 5000 outcomes seems like a reasonable approach. Would be interested to hear other people's methods. The thing I can't...
by ScottishSpeculator
17 Mar 2023
Forum: MultiCharts
Topic: Walk forward /Matrix explained for an idiot
Replies: 13
Views: 1890

Re: Walk forward /Matrix explained for an idiot

O2cool , yeah I did put a feature request in for more functionality with Monto carlo. I have somewhat gone off walk forward recently as I don't see how it gets around the curve fitting, just smaller periods of curve fitting. - I think ill just do sensible backtesting looking for robust stable ranges...
by ScottishSpeculator
15 Mar 2023
Forum: MultiCharts
Topic: Understanding arrays/ get Y when X condition is met
Replies: 4
Views: 510

Re: Understanding arrays/ get Y when X condition is met

Polly thanks for your reply. Yeah the function is probably what I am after. Ill look into your links more,
by ScottishSpeculator
14 Mar 2023
Forum: MultiCharts
Topic: Easylangauge/PowerLanguage telegram group/pay for code.
Replies: 2
Views: 408

Re: Easylangauge/PowerLanguage telegram group/pay for code.

Come on guys you know you want to join lol. Thinking if the group can be formed (emails collected) you could submit strategy/function/code ideas and we could upvote the ideas and purchase between us. Could be less than a cup of coffee each to get new interesting ideas/codes made and shared. lets go !
by ScottishSpeculator
13 Mar 2023
Forum: MultiCharts
Topic: Easylangauge/PowerLanguage telegram group/pay for code.
Replies: 2
Views: 408

Easylangauge/PowerLanguage telegram group/pay for code.

Hello guys So I spend all day looking at how to do a piece of code on various boards etc. Sometimes as a new user its basic as well but you hit that wall. Sometimes the replies on boards/(not just here ) aren't as fast or engaging as you might hope. Anyway it dawned on me I cant be the only one who ...
by ScottishSpeculator
13 Mar 2023
Forum: MultiCharts
Topic: How to code one trade a day or...
Replies: 9
Views: 1117

Re: How to code one trade a day or...

Did you try daily losers and numlostrades keywords? I don't really do intraday strategies so its not something I have researched yet or am familiar with. I would also like to know this piece of code. It could be a nice function to have saved. If I have time this week I may play around with one of my...
by ScottishSpeculator
13 Mar 2023
Forum: MultiCharts
Topic: Understanding arrays/ get Y when X condition is met
Replies: 4
Views: 510

Re: Understanding arrays/ get Y when X condition is met

Hey Polly Are you able to attach some more comments to the lines of code so I can follow what each line is doing, is that too much trouble? Still trying to learn arrays. I read you couldn't plot arrays so this seems conflicting. What I can't see from the comments/ code is how ar_close is not just pl...
by ScottishSpeculator
12 Mar 2023
Forum: MultiCharts
Topic: Turtle Trade /how to track previous trade result we didn't take?
Replies: 0
Views: 318

Turtle Trade /how to track previous trade result we didn't take?

I am sure the experienced traders here have looked at the Turtle trade ... Want to try it out. I have no issues with the entry/exit and ATR stops etc. What is more interesting and probably helpful for new users to understand including me is the logic of tracking trades which perhaps we didn't take. ...
by ScottishSpeculator
12 Mar 2023
Forum: MultiCharts
Topic: How to code one trade a day or...
Replies: 9
Views: 1117

Re: How to code one trade a day or...

I was thinking about this and was reading the Turtle strategy. They have a filter in which you don't take the trade if the last trade was a win. Does anyone know how to get around this logic issue? You could code something easy enough saying dont trade if the last trade was a win but then how do you...
by ScottishSpeculator
10 Mar 2023
Forum: MultiCharts
Topic: How to code one trade a day or...
Replies: 9
Views: 1117

Re: How to code one trade a day or...

Zanna Since no one else will have a go, ill give it an attempt. Still new but want to help where possible. As I rely on people replying to my posts hopefully. I think you can use the keywords Dailylosers or numlostrades but I am not sure if they are specific to each strategy or the overall portfolio...
by ScottishSpeculator
05 Mar 2023
Forum: MultiCharts
Topic: Understanding arrays/ get Y when X condition is met
Replies: 4
Views: 510

Understanding arrays/ get Y when X condition is met

Hello guys. Still learning... Anyone got any good examples or materials on arrays? Need to brush up on this. I think the solution to a problem at moment involves arrays. Let's say you want to look back at an indicator and select a value based on some condition. Say for example purposes volatility va...
by ScottishSpeculator
01 Mar 2023
Forum: MultiCharts
Topic: Money Management Question
Replies: 1
Views: 340

Re: Money Management Question

Hey pal. I think you need to start thinking about how you are determining your stop loss. Because you need to know this for position size. Ie how many stocks at my (entry-stop) would equal my risk %
by ScottishSpeculator
20 Feb 2023
Forum: MultiCharts
Topic: SetStopLoss with highs and lows.
Replies: 12
Views: 1281

Re: SetStopLoss with highs and lows.

hmm I am new myself to PL , id also like to know the solution. Perhaps you can use 2 different data sources in code with different time frames. What bar time frame are you using? If it was daily then perhaps you could set up a data2 with smaller time frame so it would occur within the daily bar?
by ScottishSpeculator
18 Feb 2023
Forum: MultiCharts
Topic: SetStopLoss with highs and lows.
Replies: 12
Views: 1281

Re: SetStopLoss with highs and lows.

I think you can create a variable and just reference it with stop. Someone will probably correct this but off top of head something like Input: Length(2); Var: stophigh(0); stophigh = Highest(High, Length); If marketposition =-1 then begin buytocover next bar at stophigh stop; end;
by ScottishSpeculator
12 Feb 2023
Forum: MultiCharts
Topic: Fundamental datas
Replies: 29
Views: 10308

Re: Fundamental datas

yes please add this ill upvote the project. Being able to ref fundamental data also for strategies as data2/3 etc is a must needed addition
by ScottishSpeculator
09 Feb 2023
Forum: MultiCharts
Topic: nice function for recording value with time period? MC staff?
Replies: 5
Views: 540

Re: nice function for recording value with time period? MC staff?

Polly OK ill try this out but still a function from one of your development /coding staff would be nice to post here. One which takes in a date range/ time period and variable like high/low/highesthigh/lowestlow/highestclose/lowestclose//indicator value and outputs the desired value
by ScottishSpeculator
09 Feb 2023
Forum: MultiCharts
Topic: Walk forward /Matrix explained for an idiot
Replies: 13
Views: 1890

Re: Walk forward /Matrix explained for an idiot

Ok, I get the logic of walk forward although I am not convinced it improves live trading yet. It was more the forecast part and determining which cell to pick going forward. So in theory you would look for the cell with the highest profit and then go look at the parameters within that cell which are...
by ScottishSpeculator
09 Feb 2023
Forum: MultiCharts
Topic: nice function for recording value with time period? MC staff?
Replies: 5
Views: 540

Re: nice function for recording value with time period? MC staff?

Hey, Polly how does printing these out help me? I am trying something like the code below(part of a larger strategy) but it's not really working and if your times cross dates it's getting a bit messy. Would be good if others shared their solutions or you guys could just build a function which return...
by ScottishSpeculator
07 Feb 2023
Forum: MultiCharts
Topic: Walk forward /Matrix explained for an idiot
Replies: 13
Views: 1890

Re: Walk forward /Matrix explained for an idiot

I guess for the layman here it isn't clear what you do after running the matrix optimisation. You run a matrix optimisation test picking a range of run lengths and OOS % and some robust parameters. You get back 20 boxes some are green some are red for example. Then what? There is no material saying ...
by ScottishSpeculator
06 Feb 2023
Forum: MultiCharts
Topic: nice function for recording value with time period? MC staff?
Replies: 5
Views: 540

nice function for recording value with time period? MC staff?

Hey guys does anyone have a nice function they can share which can be used for tracking/storing the value within a time period window? For example highest close, Highest High/Low etc. The issue I can see already with the way EL/PL uses time in a 24:00 manner is the use of 100 for 01:00 and the fact ...
by ScottishSpeculator
06 Feb 2023
Forum: MultiCharts
Topic: Optimize on Sharpe Ratio
Replies: 18
Views: 11421

Re: Optimize on Sharpe Ratio

I think its normal in the quant/trading world to use 252 is it not? Anyone else got an opinion on this? Thought was a set fixed parameter.

Can you guys create a function for the Sortino Ratio?
by ScottishSpeculator
05 Feb 2023
Forum: MultiCharts
Topic: Optimize on Sharpe Ratio
Replies: 18
Views: 11421

Re: Optimize on Sharpe Ratio

Kate , are you sure it's square root (365) and not 252 trading days for working out annualised Sharpe ratio. I think as the people above said all outputs should just be automatically converted to annual. Shouldn't have to second-guess this. Can you just confirm when your running this custom fit valu...
by ScottishSpeculator
04 Feb 2023
Forum: MultiCharts
Topic: Walk forward /Matrix explained for an idiot
Replies: 13
Views: 1890

Re: Walk forward /Matrix explained for an idiot

Ok I have also read that the matrix box in which you should select is the one in the middle of a grid of say 9 boxes. Cant find anything on Multicharts saying a similar line of thinking or theory behind picking the best run vs OOS % . Any thoughts on this evaluation process?
by ScottishSpeculator
02 Feb 2023
Forum: MultiCharts
Topic: Walk forward /Matrix explained for an idiot
Replies: 13
Views: 1890

Re: Walk forward /Matrix explained for an idiot

Hello thanks for the reply , ok I think I understand where this efficiency Calculation is coming from now. Its the avg profit from IS and compares with average OOS. over same time length interval. Correct? In that picture I was using 20% OOS data. It would be useful to have the average IS printed so...
by ScottishSpeculator
01 Feb 2023
Forum: MultiCharts
Topic: Walk forward /Matrix explained for an idiot
Replies: 13
Views: 1890

Walk forward /Matrix explained for an idiot

Hey, guys I have read the basics on walk forward but perhaps TJ or Henry or other experience people can explain how MC uses the theory in its software. Been playing around with the matrix optimisation. But not sure about the efficiency setting and how interpret the matrix results. So I really don't ...
by ScottishSpeculator
30 Jan 2023
Forum: MultiCharts
Topic: Open discussion about backtest/walk forward settings.
Replies: 1
Views: 295

Re: Open discussion about backtest/walk forward settings.

Perhaps if members don't want to start the chat someone from Multichart can lay out different best practices. For walk forward/backtesting regarding these questions to get it going. I know I can't be the only one interested. 1) If I am just using daily bars close for signals what settings would you ...
by ScottishSpeculator
30 Jan 2023
Forum: MultiCharts
Topic: Open discussion about backtest/walk forward settings.
Replies: 1
Views: 295

Open discussion about backtest/walk forward settings.

Hello everyone , just wanted to start a interesting thread on the topic of backtesting/walk forward but more specifically on the settings people use. Hopefully people jump in and share their experience and knowledge . Only had Multicharts for over a week and got used to the general settings / format...
by ScottishSpeculator
30 Jan 2023
Forum: MultiCharts
Topic: Is anyone having issues with orders on Oanda?
Replies: 2
Views: 394

Re: Is anyone having issues with orders on Oanda?

Hello its my understanding that you cannot place orders with OANDA if you are using OANDA in Europe. I was disappointed in this as i wanted to use a UK spread bet account. So have to just set up a alert system and manually trade it.
by ScottishSpeculator
20 Jan 2023
Forum: MultiCharts
Topic: Keyword for converting home account currency to asset currency.?
Replies: 3
Views: 445

Re: Keyword for converting home account currency to asset currency.?

Hello Svetlana . so I think i can get the convert_currency to work but only when I create an equation of equity= initial_equity + netprofit . What I am really trying to do is use the ID=GetAccountID(); to get ID then pass this into the GetRTAccountEquity(ID ). However when I try this using my OANDA ...
by ScottishSpeculator
20 Jan 2023
Forum: MultiCharts
Topic: Keyword for converting home account currency to asset currency.?
Replies: 3
Views: 445

Re: Keyword for converting home account currency to asset currency.?

ok so can you put get_account keyword in the equation instead of SrcCurrency and use it like this ?
by ScottishSpeculator
20 Jan 2023
Forum: MultiCharts
Topic: Keyword for converting home account currency to asset currency.?
Replies: 3
Views: 445

Keyword for converting home account currency to asset currency.?

Hello Does anyone know of a keyword /way to first get your account equity , I think you can use GetRTAccountEquity. But for me for example it would be £ . But most of the assets /commodities will be in USD. Is there a automatic build in way to convert this /function within MC? This is for calculatin...
by ScottishSpeculator
15 Jan 2023
Forum: MultiCharts
Topic: setting point value for EURUSD and performance report proble
Replies: 22
Views: 8866

Re: setting point value for EURUSD and performance report proble

wondering if these forex issues where ever improved in MC14? have you changed to classical pip definition?
by ScottishSpeculator
10 Jan 2023
Forum: MultiCharts
Topic: the strategy is awaiting data for Bar Magnifier...
Replies: 8
Views: 2731

Re: the strategy is awaiting data for Bar Magnifier...

Yeah I fixed. Thanks for reply though.
by ScottishSpeculator
10 Jan 2023
Forum: MultiCharts
Topic: Getting Total Account Equity to Calculate Position Size
Replies: 15
Views: 4667

Re: Getting Total Account Equity to Calculate Position Size

or you could just create the keyword MC . Also looking for keyword which tells you the current live equity of the total account ( not including active non closed trades) really shocked this isnt available as standard
by ScottishSpeculator
08 Jan 2023
Forum: MultiCharts
Topic: the strategy is awaiting data for Bar Magnifier...
Replies: 8
Views: 2731

Re: the strategy is awaiting data for Bar Magnifier...

any answer to this issue? I am getting the same but it's the weekend and I am wondering if new live data is causing an issue. I can't get studies to even appear on my chart . Need to look into this more but its really frustrating cause TS fine at weekends with no further adjustments to show me studies
by ScottishSpeculator
08 Jan 2023
Forum: MultiCharts
Topic: Studies do not show on real time charts [SOLVED]
Replies: 6
Views: 2655

Re: Studies do not show on real time charts [SOLVED]

Thank god this chat was here I just read the MC manual on studies and not once did it mention this. I guess most people will play around at the weekends also. They really should have videos showing and discussing how to set up studies and run/ tips etc
by ScottishSpeculator
07 Jan 2023
Forum: MultiCharts
Topic: Advice for new user/ testing out first strategies .
Replies: 3
Views: 549

Advice for new user/ testing out first strategies .

Hello guys, just joined MC. First of all, this isn't a post for me to just ask about shortcuts in learning. I am always willing to put in the effort to learn/read and try to improve my knowledge but I am new and there is never any harm in asking the experienced coders what they wish they knew when t...
by ScottishSpeculator
05 Jan 2023
Forum: MultiCharts
Topic: Breakout Session Strategy
Replies: 6
Views: 835

Re: Breakout Session Strategy

or maybe something like a count function. Not sure.. Inputs: StartTime(0900), EndTime(1600); Variables: HighDuringPeriod(0), i(0); for i = 0 to BarCount-1 do begin if Time >= StartTime and Time <= EndTime then if High > HighDuringPeriod then HighDuringPeriod = High ; end; Plot1(HighDuringPeriod);
by ScottishSpeculator
05 Jan 2023
Forum: MultiCharts
Topic: Breakout Session Strategy
Replies: 6
Views: 835

Re: Breakout Session Strategy

Hello I am new to EL and multicharts but just purchased the lifetime pass to give my trading a go on algo. Was reading your post and thought perhaps you could create a indicator for the previous high within your time window . Probably the way I will try and create a breakout strategy. Then you could...

Go to advanced search