trade in define time period

Questions about MultiCharts and user contributed studies.
matthewting
Posts: 25
Joined: 05 Jan 2019
Has thanked: 6 times

trade in define time period

Postby matthewting » 29 Dec 2019

Dear MC,
My strategy existing multi signals in the same time period, the time period is opivotbar of pivot "( price,length, leftstrength, rightstrength, instance, hilo, opivotprice, opivotbar) "
How can I define trading in the same time period(opivotbar) ?
I input the pivot function that existing the darkbrown plot ( opivotbar ) , I mean trading in the same wave time period.Please check the below pic.

Image
Image

Could you give me some idea?
Thanks.

Code: Select all

variables:value1( 0 ), opivotprice( 0 ), opivotbar( 0 ), AVGP( 0 ); value1 = pivot( high, 21, 4, 2, 1, -1, opivotprice, opivotbar ); value2 = opivotprice; value3 = opivotbar; AVGP = AVERAGE( CLOSE, 3 ); if close > AVGP then value10 = Arw_New(Date,time,LOW,FALSE); value11 = Arw_SetText( value10, "AVGP"); value12 = Arw_SetTextBGcolor( value10, magenta );
I don't know why I insert the code will squeeze together, I post the text format of code in below :

variables:value1( 0 ), opivotprice( 0 ), opivotbar( 0 ), AVGP( 0 );

value1 = pivot( high, 21, 4, 2, 1, -1, opivotprice, opivotbar );
value2 = opivotprice;
value3 = opivotbar;

AVGP = AVERAGE( CLOSE, 3 );

if close > AVGP then
value10 = Arw_New(Date,time,LOW,FALSE);
value11 = Arw_SetText( value10, "AVGP");
value12 = Arw_SetTextBGcolor( value10, magenta );
Attachments
opivotbar.JPG
op
(28.23 KiB) Not downloaded yet

User avatar
Svetlana MultiCharts
Posts: 645
Joined: 19 Oct 2017
Has thanked: 3 times
Been thanked: 163 times

Re: trade in define time period

Postby Svetlana MultiCharts » 08 Jan 2020

Hello, matthewting,

Please describe in more details which difficulty you have with this code extract.


Return to “MultiCharts”