Search found 8 matches

by salonbus
04 Jan 2013
Forum: MultiCharts
Topic: how to handle this situation
Replies: 16
Views: 2698

Re: how to handle this situation

i wondered if i could use "time" to filter my condition, for example, after covered my long position, if low<dnline and the time of "low<dnline" newest than the time of "high>upline" then short.
by salonbus
04 Jan 2013
Forum: MultiCharts
Topic: how to handle this situation
Replies: 16
Views: 2698

Re: how to handle this situation

i want to cover the long position first, then short, as if i cover long and sell short at the same time, it will use double margin in china market. secondly, i'll add some filter in my condition, so i think use sellshort is not a good choice.
by salonbus
04 Jan 2013
Forum: MultiCharts
Topic: how to handle this situation
Replies: 16
Views: 2698

Re: how to handle this situation

please refer the attachment. from the pic, you can see there is red bar, which high>upline and low<dnline, and before that bar, i have a long position, so when come to the red bar, i should short right after covered my long position. The signal that "buy & cover" is not needed. i think maybe "Time" ...
by salonbus
04 Jan 2013
Forum: MultiCharts
Topic: how to handle this situation
Replies: 16
Views: 2698

Re: how to handle this situation

Code: Select all

traded.this.bar <> currentbar
hi TJ, does this code means it will short at next bar? I'd like to short immediately after covered the long position, could u please tell me how can i achieve that purpose.
by salonbus
03 Jan 2013
Forum: MultiCharts
Topic: how to handle this situation
Replies: 16
Views: 2698

Re: how to handle this situation

the pic, for you reference
by salonbus
03 Jan 2013
Forum: MultiCharts
Topic: how to handle this situation
Replies: 16
Views: 2698

Re: how to handle this situation

the problem is still apeared..., could you please kindly help to check my code, thanks! [IntrabarOrderGeneration = True] Inputs: length(0.5); vars: myrange(0),upline(0),dnline(0),offset(0),flag(0),RiskPercent(0.15),TotalEquity(0.0), Lots(0),MarginRatio(0.15); if currentbar>=1 then begin value1=HighD...
by salonbus
03 Jan 2013
Forum: MultiCharts
Topic: how to handle this situation
Replies: 16
Views: 2698

Re: how to handle this situation

thank you so much!
by salonbus
03 Jan 2013
Forum: MultiCharts
Topic: how to handle this situation
Replies: 16
Views: 2698

how to handle this situation

hi u guys, my trading conditons are : high>upline then buy at market, low<dnline then sellshort at market, but i found if there is a bar which high>upline and low<dnline, and my marketposition=-1 , then after i covered my short position, there will be a short signal, which is not my wanted. My code ...

Go to advanced search