Hi anyone, i am have [IntrabarOrderGeneration = False ]; code in 10 min chart
I am looking to set :
If condition=true then buy at InsideBid Limit order, when I run this code, MC send the order to broker only in last BId available in BOOK, means that this best bid is fixed,
I like that this Bid will be changed according to market conditions until this will fill.
Any code idea please ??
fyi : i try to use IntraBarPersist maybe , but does not work or i have a mistake
tks
insidebid for 10min-chart
- Tammy MultiCharts
- Posts: 200
- Joined: Aug 06 2020
- Has thanked: 6 times
- Been thanked: 65 times
Hello AVT,
You will need to add a second data series to your chart for the same instrument and resolution, in Format Instrument > Settings tab > Quote Field select Bid for Data2.
Please refer to this code sample to achieve your goal:
You will need to add a second data series to your chart for the same instrument and resolution, in Format Instrument > Settings tab > Quote Field select Bid for Data2.
Please refer to this code sample to achieve your goal:
Code: Select all
[AllowSendOrdersAlways = True]
[IntrabarOrderGeneration=True]
buy next bar at c of data2 limit;