GithubHelp home page GithubHelp logo

andre-luis-lopes-da-silva / developing-an-expert-adviser-based-on-parabolic-sar-indicator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 17 KB

The aim of this study was develop an expert adviser based on parabolic SAR indicator. However, it is necessary to find a trend tracer to combine with this indicator. It was tested diferent moving averages with different periods as trend tracers. Data of different tests are shown and discussed.

License: MIT License

algotrading expert-advisor moving-average parabolic-sar metatrader-5 mql5

developing-an-expert-adviser-based-on-parabolic-sar-indicator's Introduction

Developing-an-expert-adviser-based-on-Parabolic-SAR-indicator

The aim of this study is develop an expert adviser based on parabolic SAR indicator. However, it is necessary to find a trend tracer to combine with this indicator. It was tested diferent moving averages with different periods as trend tracers. Data of different tests are shown and discussed.

INTRODUCTION

The parabolic SAR indicator was developed by J. Wells Wilder. This indicator is used by traders to determine trend direction and potential reversals in price. The indicator uses a trailing stop and reverse method called "SAR," or stop and reverse, to identify suitable exit and entry points. Traders also refer to the indicator as to the parabolic stop and reverse or simplely, parabolic SAR.

Table 1. Results of the expert adviser using only the parabolic SAR as a buy signal in ITUB4 during 2018-01-01 until 2023-06-09. Only buys made. Table 1

Table 4. Effects of the type and period of moving average in ITUB4 during 2018-01-01 until 2023-06-09. Only buys made. Moving average was used as trend tracer together parabolic SAR. Table 4

This alteration on code resulted in a small improvement on trades:

bool compra_SAR = velas[1].high > SARValue && mm_Buffer[0]>mm_Buffer[x] && close_atual<Limite;

x corresponding the period of the candle, the distance between the current candle (i.e., mm_Buffer[0]) and previous candle.

See Table 6.

Table 6. Results of the expert adviser in BBAS3 (bank sector) during 2018-01-01 until 2023-06-09 using parabolic SAR and smoothed moving average with 21 periods. Only buys made. Table 6

developing-an-expert-adviser-based-on-parabolic-sar-indicator's People

Contributors

andre-luis-lopes-da-silva avatar

Watchers

 avatar

developing-an-expert-adviser-based-on-parabolic-sar-indicator's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.