거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
당사 팬 페이지에 가입하십시오
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
- 조회수:
- 9906
- 평가:
- 게시됨:
- 2022.07.08 17:10
- 업데이트됨:
- 2022.07.08 18:03
-
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
Modify to allow direct specification of the starting point of the Parabolic SAR.
Parameters
- Trailing Mode ・・・ None / Trailing Fixed / Trailing Fixed Parabolic SAR
calcuration part of Parabolic SAR
bool CSampleExpert::LongModifiedEx(void) { bool res=false; //--- check for trailing stop if(m_trailing_max < m_last_bar.high) { double tp=m_position.TakeProfit(); double sl=m_position.StopLoss(); //--- calcurate ParabolicSAR m_trailing_max = m_last_bar.high; m_trailing_step = fmin(InpPSAR_Maximum, m_trailing_step + InpPSAR_Step); double sar_stop = sl + (m_trailing_max - sl)* m_trailing_step; sar_stop=NormalizeDouble(sar_stop,m_symbol.Digits()); //--- if((sl==0.0 || sl < sar_stop) && sar_stop < m_symbol.Bid()) { //--- modify position if(m_trade.PositionModify(Symbol(),sar_stop,tp)) printf("Long position by %s to be modified",Symbol()); else { printf("Error modifying position by %s : '%s'",Symbol(),m_trade.ResultComment()); printf("Modify parameters : SL=%f,TP=%f",sar_stop,tp); } //--- modified and must exit from expert res=true; } } //--- result return(res); }

Allows you to determine the occurrence of a new bar event in a multicurrency Expert Advisor

Two pending orders at the beginning of the day

This library shows useful informations and do a lot of functions to a symbol.

The Predictive Moving Average was created by John Ehlers (“Rocket Science For Traders”, pg.212″).