wisdestiny
New member
Добрый день, подскадите пож-та, как правильно читать этот код:
inputs: Price( Close ), Length( 14 ), MomAvgLength( 8 ); variables: MomentumVal( 0 ), MomAvg (0); MomentumVal = Momentum( Price, Length ); MomAvg = Average( MomentumVal, MomAvgLength ); Condition1 = MomentumVal > MomAvg and MomentumVal[1] <= MomAvg[1]; if Condition1 then Buy («MomCrAvB») next bar at market;
inputs: Price( Close ), Length( 14 ), MomAvgLength( 8 ); variables: MomentumVal( 0 ), MomAvg (0); MomentumVal = Momentum( Price, Length ); MomAvg = Average( MomentumVal, MomAvgLength ); Condition1 = MomentumVal > MomAvg and MomentumVal[1] <= MomAvg[1]; if Condition1 then Buy («MomCrAvB») next bar at market;