Sidus V2 MT4 - MetaQuotes MetaTrader MQL Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > MetaTrader > MetaQuotes MetaTrader MQL Programming

Sidus V2 MT4
Started:February 1st, 2011 (09:42 PM) by AR01 Views / Replies:2,814 / 1
Last Reply:February 1st, 2011 (09:42 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Sidus V2 MT4

Old February 1st, 2011, 09:42 PM   #1 (permalink)
Elite Member
Futures Experience: Beginner
Platform: MT4, Ninja Trader
Favorite Futures: EUR/USD
Posts: 495 since Oct 2009
Thanks: 400 given, 620 received

Sidus V2 MT4

I found this indicator and it appears as if it is using the 14EMA, 21EMA, and cross of the 17RSI to determine an entry. However, when I put these indicators on the chart I get a different entry visually than the arrow. For example, the arror seems to occur before the 14/21 cross in some instances. Could someone look at the code and determine what it is doing? Am I missing something?


//| Sidus v.2 Entry Indicator.mq4 |
//| |
//| Ideas by Sidus |
#property copyright "Sidus"
#property link ""

#property indicator_chart_window
#property indicator_buffers 4
#property indicator_color1 Blue
#property indicator_color2 Red
#property indicator_color3 Blue
#property indicator_color4 DodgerBlue

#include <WinUser32.mqh>
//---- input parameters
extern int FastEMA=14;
extern int SlowEMA=21;
extern int RSIPeriod=17;
extern bool Alerts=false;
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
double ExtMapBuffer4[];
//double rsi_sig[];
//---- variables
int sigCurrent=0;
int sigPrevious=0;
double pipdiffCurrent=0;
double pipdiffPrevious=0;
//| Custom indicator initialization function |
int init()
//---- indicators
//| Custom indicator deinitialization function |
int deinit()

//| Custom indicator iteration function |
int start()
int limit;
int counted_bars=IndicatorCounted();
double rsi_sig=0;
bool entry=false;
double entry_point=0;

//---- check for possible errors
if(counted_bars<0) return(-1);
//---- last counted bar will be recounted
if(counted_bars>0) counted_bars--;

//---- main loop
for(int i=0; i<limit; i++)
//---- ma_shift set to 0 because SetIndexShift called abowe
rsi_sig = iRSI(NULL, 0, RSIPeriod, PRICE_CLOSE, i);


Comment("pipdiffCurrent = "+pipdiffCurrent+" ");
if (pipdiffCurrent>0 && rsi_sig>50)
sigCurrent = 1; //Up
else if (pipdiffCurrent<0 && rsi_sig<50)
sigCurrent = 2; //Down
if (pipdiffCurrent>0)
sigCurrent = 1; //Up
else if (pipdiffCurrent<0)
sigCurrent = 2; //Down

if (sigCurrent==1 && sigPrevious==2)
ExtMapBuffer4[i-1] = High[i-1]-5*Point;
//ExtMapBuffer3[i] = Ask;
else if (sigCurrent==2 && sigPrevious==1)
ExtMapBuffer3[i-1] = Low[i-1]-5*Point;
//ExtMapBuffer4[i] = Bid;


if(Alerts && entry)
if (sigPrevious==1)
MessageBox("Entry point: buy at "+entry_point+"!!", "Entry Point", MB_OK);
else if (sigPrevious==2)
MessageBox("Entry point: sell at "+entry_point+"!!", "Entry Point", MB_OK);



Reply With Quote

Old February 1st, 2011, 09:42 PM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > MetaTrader > MetaQuotes MetaTrader MQL Programming > Sidus V2 MT4

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Better Renko V2 download gmorgan111 The Elite Circle 21 March 18th, 2013 09:19 PM
MT4 ordering appl. , range chart for MT4 ,Is there such an animal ? Manfred MetaTrader 3 May 22nd, 2011 10:29 AM
MT4/5 - Best indicators translation - need help Drdre MetaQuotes MetaTrader MQL Programming 1 December 21st, 2010 06:27 AM
JForex vs MT4 tderrick Currency Futures 9 December 18th, 2010 05:54 PM
Drain the banks from MT4 wh Traders Hideout 19 September 13th, 2009 07:35 PM

All times are GMT -4. The time now is 06:46 AM.

Copyright © 2016 by All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts

Page generated 2016-10-24 in 0.09 seconds with 20 queries on phoenix via your IP