Hi
Please advice me. In timeframe 5 minute i want to check macd is slope up
In script below,please advice me What is the formular is true? because I write 2 method for compare but result of 2 Method is return value not same.
Method 1 :
TimeFrameSet(in5Minute);
In5MinMacd12_26Slopeup = LinRegSlope( MACD(12,26), 3 ) > 0 ;
TimeFrameRestore();
or
Method 2 :
TimeFrameSet(in5Minute);
In5minMacd12_26 = MACD(12,26);
TimeFrameRestore();
In5MinMacd12_26Slopeup = LinRegSlope(TimeFrameExpand(In5minMacd12_26,in5Minute) , 3 ) > 0 ;
Please advice me. In timeframe 5 minute i want to check macd is slope up
In script below,please advice me What is the formular is true? because I write 2 method for compare but result of 2 Method is return value not same.
Method 1 :
TimeFrameSet(in5Minute);
In5MinMacd12_26Slopeup = LinRegSlope( MACD(12,26), 3 ) > 0 ;
TimeFrameRestore();
or
Method 2 :
TimeFrameSet(in5Minute);
In5minMacd12_26 = MACD(12,26);
TimeFrameRestore();
In5MinMacd12_26Slopeup = LinRegSlope(TimeFrameExpand(In5minMacd12_26,in5Minute) , 3 ) > 0 ;