|
參考看看~- //
- _VBarIndex = BarsSince( Status("barvisible") != Ref( Status("barvisible"), -1 ) );
- //
- _HHVShapes = ( HighestVisibleValue( H ) == H );
- _HBarCount = Sum( ( _HHVShapes != Ref( _HHVShapes, -1 ) ), _VBarIndex );
- _HHVShapes = _HHVShapes AND ( _HBarCount == 1 ) AND ( Ref( _HBarCount, -1 ) == 0 );
- //
- _LLVShapes = ( LowestVisibleValue( L ) == L );
- _LBarCount = Sum( ( _LLVShapes != Ref( _LLVShapes, -1 ) ), _VBarIndex );
- _LLVShapes = _LLVShapes AND ( _LBarCount == 1 ) AND ( Ref( _LBarCount, -1 ) == 0 );
- //
- PlotShapes( _HHVShapes * shapeSmallSquare + _LLVShapes * shapeSmallSquare
- , colorWhite
- , 0
- , _HHVShapes * High + _LLVShapes * Low
- , _HHVShapes * 10 + _LLVShapes * -10 );
- //
- for ( i = 0; i < BarCount; i++ )
- {
- if ( _HHVShapes[ i ] )
- PlotText( "High " + H[ i ]
- , i + 2
- , H[ i ]
- , colorWhite );
-
- if ( _LLVShapes[ i ] )
- PlotText( "Low " + L[ i ]
- , i + 2
- , L[ i ]
- , colorWhite );
- }
- Plot( C, "", colorWhite, styleCandle );
複製代碼
|
評分
-
查看全部評分
|