insidebid for 10min-chart

Questions about MultiCharts and user contributed studies.
AVT
Posts: 6
Joined: 30 Aug 2018
Has thanked: 1 time

insidebid for 10min-chart

Postby AVT » 22 Oct 2021

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

User avatar
Tammy MultiCharts
Posts: 200
Joined: 06 Aug 2020
Has thanked: 6 times
Been thanked: 65 times

Re: insidebid for 10min-chart

Postby Tammy MultiCharts » 27 Oct 2021

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:

Code: Select all

[AllowSendOrdersAlways = True] [IntrabarOrderGeneration=True] buy next bar at c of data2 limit;

AVT
Posts: 6
Joined: 30 Aug 2018
Has thanked: 1 time

Re: insidebid for 10min-chart

Postby AVT » 27 Oct 2021

tks great solution !


Return to “MultiCharts”