Search found 3 matches

by zanna77
28 Mar 2023
Forum: MultiCharts
Topic: How to code one trade a day or...
Replies: 9
Views: 1161

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

Thanks Rramms, Maybe the problem is that I haven't written the reset the condition1 back to false after every bar. How I code it? For example if tradestoday(0)=0 then condition1=true; if condtion1 and c>highd(0) then buy next bar at market; ]if mp=1 and c<lowd(0) then sell next bar at market; I want...
by zanna77
13 Mar 2023
Forum: MultiCharts
Topic: How to code one trade a day or...
Replies: 9
Views: 1161

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

Hi and thanks for your help. I have tried also your suggestion but doesn't work. I thinks that the reserved word tradestoday doesn't work .
It seems an easy istruction to code but I can't find the solution
by zanna77
09 Mar 2023
Forum: MultiCharts
Topic: How to code one trade a day or...
Replies: 9
Views: 1161

How to code one trade a day or...

Hi everyone, I have a question: I want that the strategy makes only one trade a day or that it can makes more than one but only if the first trade of the day has a positive profit. I have tried this but nothing changes in the performance report: if (TradesToday(Date[0])=0) then condition1 = True ; i...

Go to advanced search