Search found 11 matches

by gioakino
26 Jun 2019
Forum: MultiCharts
Topic: NetProfit montly average;
Replies: 12
Views: 2567

Re: NetProfit montly average;

ABC, thanks for your help, I read the "easylanguage essentials" guide and i've changed everything. Is wrong this way of calculating the average with arrays of the last n elements ? I have this error message in study: " Array bounds. Wrong index value : 1 . " Regards gioakino array: Mydynamicarray[] ...
by gioakino
25 Jun 2019
Forum: MultiCharts
Topic: NetProfit montly average;
Replies: 12
Views: 2567

Re: NetProfit montly average;

Abc,


I suppose that's the mistake, the problem is that I have no idea how to store the values . How can I do it?

Regards

gioakino
by gioakino
25 Jun 2019
Forum: MultiCharts
Topic: NetProfit montly average;
Replies: 12
Views: 2567

Re: NetProfit montly average;

ABC, myarray[1] returns the value of the last "montlyprofit" and Montlyavgprofit returns the value of the last "montlyprofit" divided by three (average size). Regards gioakino array: Myarray[20] (0); var: counter(0),arraysize(20),HoldRow(0), SaveValue(0); input: avglen(4); Variables:isLastDayOfMonth...
by gioakino
24 Jun 2019
Forum: MultiCharts
Topic: NetProfit montly average;
Replies: 12
Views: 2567

Re: NetProfit montly average;

Abc, I tried to correct the code, now I get the last value of Montlyprofit divided by three instead the average of the last three elements, I don't understand the reason . Regards gioakino array: Myarray[20] (0); var: counter(0),arraysize(20),HoldRow(0), SaveValue(0); input: avglen(4); Variables:isL...
by gioakino
24 Jun 2019
Forum: MultiCharts
Topic: NetProfit montly average;
Replies: 12
Views: 2567

Re: NetProfit montly average;

Abc, thanks you for your answear, you're right, what I want from my code is flexibility. I looking for some examples and I tried to write the code using arrays, but something is wrong because the avg of the array is always zero. If you or someone can check it, I'd be grateful. Regards gioakino array...
by gioakino
21 Jun 2019
Forum: MultiCharts
Topic: NetProfit montly average;
Replies: 12
Views: 2567

Re: NetProfit montly average;

Abc,
thanks for your answer, I'm not very expert with arrays, there is another possible approach?

Regards

gioakino
by gioakino
21 Jun 2019
Forum: MultiCharts
Topic: NetProfit montly average;
Replies: 12
Views: 2567

NetProfit montly average;

Hi everyone, with this code, I would like to calculate the average of the Montly netprofits the last day of month, if I put the length at two periods it is well calculated but if the length is three or more periods it is not well calculated. Can someone help me to understand why this happens? input:...
by gioakino
06 Jun 2019
Forum: MultiCharts
Topic: Last day of month code working with data2 ;
Replies: 5
Views: 1312

Re: Last day of month code working with data2 ;

No one has any ideas how to solve ?
by gioakino
04 Jun 2019
Forum: MultiCharts
Topic: Last day of month code working with data2 ;
Replies: 5
Views: 1312

Re: Last day of month code working with data2 ;

Hi TJ, this the complete code i'm using for create my montly custom report, as I told you it does not work if inserted in any signal with data2; ///////////////////////MONTHLY OUTPUT vars: lastTradingDay(false),MontlyProfit(0); lastTradingDay = false; If month(date of next bar) > month(date) then be...
by gioakino
02 Jun 2019
Forum: MultiCharts
Topic: Last day of month code working with data2 ;
Replies: 5
Views: 1312

Re: Last day of month code working with data2 ;

errore.jpg
(100.68 KiB) Downloaded 242 times
by gioakino
02 Jun 2019
Forum: MultiCharts
Topic: Last day of month code working with data2 ;
Replies: 5
Views: 1312

Last day of month code working with data2 ;

Hi everyone, i have this code that i use to find last day of month, it works fine but if the signal contains data2 it does not work, the error message is " Open Next bar type strategies calculation in not permitted on multiple DataStreams", someone has a suggestion to solve the problem and calculate...

Go to advanced search