Codes

RSI MA EA for MetaTrader 4

EA purposes to always win with cumulative profit and to manage volume

Forum

Would anybody be knowledg-able to fix this?

Honestly I doubt anybody can find the loogical flaw in this source code

Why does an unselected object delete by keypress?

When I create button and label from expert advisor ObjectCreate ( 0 , "button0" , OBJ_BUTTON , 0 , 0 , 0 ); ObjectSetInteger ( 0 , "button0" , OBJPROP_CORNER , CORNER_LEFT_UPPER ); ObjectSetInteger ( 0 , "button0" , OBJPROP_XDISTANCE , 10 ); ObjectSetInteger ( 0 , "button0" , OBJPROP_YDISTANCE , 10

How do I avoid selecting a closed ticket?

I tested order select for false condition of a closed ticket which returns true and not false. Print (( bool ) OrderSelect ( 61057926 ,SELECT_BY_TICKET,MODE_TRADES)); How to know if a ticket was closed, by not being an open order to select

How to sort struct variables in MT4?

Hi I'm using a struct for collecting the data which includes spreads and their instances. struct _buffer{ int spread; int instances;}; _buffer WellingtonSpread[]; The thing needed is a sorting method for these two variables in the struct by either descending or ascending

Please help fix this indicator

I think this indicator only draws a line up until bar 2 but I was honestly hoping that it draws up until bar 1, and still be non-repaint. Can this be fixed or is there an alternative similar to this ZigZag-nrp? #property copyright "Copyright 2022, MetaQuotes Software Corp." #property link "

Problems of setting levels

Greetngs Have issues with setting order levels on chart from dragging and dropping a stoploss or takeprofit It's actually saying invalid market levels but it makes no sense as 1. the spread was settled down and, 2. there could have been atleast 100 points distance from order's open price Sadly it

Simple to spot a shifted date range?

The following example is using iBarShift for parsing datetimes 🙂 input int Hour_shift=-5; //Hour shift input int Hour_start=1; //Start hr; 0-23 input int Minute_start=0; //Start min; 0-59 input int Second_start=0; //Start sec; 0-59 input int Hour_end=9; //Stop hr; 0-23 input int

do you own the rights legally?

I never really cared until I heard so many like cruel and selfish fellows talk about this subject without any proof. I should say indicator or expert advisor. Both have some degree of legal entity but who rightfully owns anything? Don't be like the others that just think it will help to change the

Set the bars in calculation

How can a bars in calculation be set by a user input as well as all bars so that it doesn't count all bars each time? Example, we have an input for bars in calculation which if set for 0 meant to calculate all bars. Input int BarsInCalc= 1000 ; //Bars In Calc; 0:All I think I have the right idea

No memory for ticks generating

I have 32 gigs of memory and I cannot figure out why I cannot optimize my strategy because it says it cannot generate ticks. <ex5 file deleted >