Search found 5 matches

by sharp2be
22 Apr 2010
Forum: MultiCharts
Topic: How to close order in the same bar?
Replies: 44
Views: 11743

first thing first... to calculate a logic, you need data. eg. the last trading price (also called current price), previous close, 20 period moving average, etc., MultiCharts has no way of accessing future data . eg. tomorrow's opening. to incorporate the opening price into your calculation, you mus...
by sharp2be
22 Apr 2010
Forum: MultiCharts
Topic: How to close order in the same bar?
Replies: 44
Views: 11743

There's more than one way to handle what you're wanting to do, but personally, I would probably just write it to operate on intraday data such as 1 minute bars. When date <> date[1] you're at the new day's open, and you can get the gap simply by looking at open and close[1] with no difficulties lik...
by sharp2be
22 Apr 2010
Forum: MultiCharts
Topic: How to close order in the same bar?
Replies: 44
Views: 11743

What you should do to re-architect this in a way that's not in question is instead: buy 1 contract next bar at close - (minmove/pricescale) limit; sell 1 contract at myStop stop; sell 1 contract at myTarget limit; and run this on daily bars. Let me explain why this would work and what you posted wo...
by sharp2be
21 Apr 2010
Forum: MultiCharts
Topic: Help with code looking into tomorrow's open - please help
Replies: 1
Views: 825

Help with code looking into tomorrow's open - please help

Hi everyone, I'm not an expert in Easylanguage and was hoping to get some help here, I believe this code should be simple (could be wrong). Using Daily Bars I would like to implement the following strategy: 1. Buy tomorrow at the Open if it's below today's Close (basically a gap fade) 2. If a positi...
by sharp2be
21 Apr 2010
Forum: MultiCharts
Topic: How to close order in the same bar?
Replies: 44
Views: 11743

Tradinghumble, do you mean close the "position" no the order right? Just want to make it clear for other members here.

Go to advanced search