i've signal in multiframe
i want to enter long next candle if price >high
i write this instruction:
Code: Select all
if open next bar>high(of this candle) and marketposition=0 then Buy ("buy") next bar at x stop;
Code: Select all
if open next bar>high(of this candle) and marketposition=0 then Buy ("buy") next bar at x stop;
Strategies are calculated at the END OF BAR.hi,
i've signal in multiframe
i want to enter long next candle if price >high
i write this instruction:I See the following error (see pics )Code: Select all
if open next bar>high(of this candle) and marketposition=0 then Buy ("buy") next bar at x stop;
If you want to use the OPEN price of the current bar in your logic, and want to trade immediately,I can do it..if i set order intrabar=true?
Your order timing is always based on data1.if i have signal multiframe is possibile use IOG ?
Don't understand your question.Which instruction I have to write to go long on the break of the current candle?
(with IOG)
thanks
Code: Select all
if open next bar>high(of this candle) and marketposition=0 then Buy ("buy") next bar at x stop;
I think you can try something like the following, although I'm not sure if I fully understand you:i want to enter long next candle if price >high
is not corret..it give me an error..Code: Select all
if open next bar>high(of this candle) and marketposition=0 then Buy ("buy") next bar at x stop;
Can you help me to code this instruction? thanks
Code: Select all
[IntrabarOrderGeneration = true];
Variables:
buyStopPrice(0);
if (BarStatus(1) = 2) then
buyStopPrice = x;
if (MarketPosition(0) = 0) then begin
if (Open > High[1]) then
Buy ("Buy") next bar at buyStopPrice stop;
end;
Code: Select all
Inputs: Strength(2);
value1=swinghigh(1,h,Strength,80);
value2=swinglow(1,l,Strength,80);
if currentbar>200 then begin
[IntrabarOrderGeneration = true];
if (BarStatus(1) = 2) then begin
if high>value1 then buy("buy") next bar at value2 stop;
end;
end;
hi,
i've signal in multiframe
i want to enter long next candle if price >high
i write this instruction:
I See the following error (see pics )Code: Select all
if open next bar>high(of this candle) and marketposition=0 then Buy ("buy") next bar at x stop;
Code: Select all
if open tomorrow>high and marketposition=0 then buy next bar at 1 Stop;
Code: Select all
if open tomorrow>high and marketposition=0 then buy next bar at 1 Stop;
turbofib, please validate your order generation conditions and follow these instructions to make indicator and signal calculation results the same.
You can also use i_setplotvalue and i_getplotvalue (introduced in MultiCharts 9.0 Beta 1). It allows sending info from signal to indicator in order to see which values it actually uses, help to avoid excessive programming and eliminate discrepancies between indicator and signal.
you write :Code: Select all
if open tomorrow>high and marketposition=0 then buy next bar at 1 Stop;
the trading system is not daily but intraday...
Code: Select all
if open tomorrow>high and marketposition=0 then buy next bar at (c+1) Stop;
Code: Select all
if open tomorrow <> c then Print(D," ",T," ",O," ",H," ",L," ",C," ",open tomorrow);
You need to output the values your code is using to understand what goes wrong. Here is a sample code that you can adjust to your needs.i read in your link : "On the historical data indicator, only values on bar close are calculated". how to see if a proper backtesting does not come at the right time?