Hello fellow trader and programmer, I wanted to build an EA for a strategy, and the strategy entails that I place ema 50 on the same rsi window and I will place a buy order when rsi is at level 30 or below and ema 50 is at rsi level 10 or below. then I will place a sell order when rsi is at level 70 or above and ema 50 is at rsi level 90 or above. I know I can get the value of rsi with the IRSI() function. But how can I detect when ema 50 is at rsi level 90. or when ema 50 is at rsi level 10?
Detect when ema 50 is at Rsi level 90 or ema 50 is at rsi level 10, when ema 50 is placed on same rsi window
287 Views Asked by Bill Mayheptad Ritchie At
2
There are 2 best solutions below
3
Bodhi Mantra
On
double AUDJPYRSID = NormalizeDouble(iRSI("AUDJPY",
PERIOD_D1,14,PRICE_CLOSE,0),0);
double AUDCADDLOW=0;
if(AUDCADRSID==30)
{
AUDCADDLOW=GetCurrentPrice("AUDCAD","ask");
}
double GetCurrentPrice(string symbol, string type)
{
double price=0.0;
if(type=="bid")
{
price=MarketInfo(symbol, MODE_BID);
}
else
{
price=MarketInfo(symbol, MODE_ASK);
}
return price;
}
Related Questions in BOTS
- C++ IRC Bot Buffer Error
- Python AttributeError: 'str' object has no attribute 'append' (Specific)
- Problems creating a polling system for a twitch bot
- A good estimate as to how many visitors are bots
- Creating a custom bot rather than using Hubot with Firebase
- Change audio output
- I want to create a bot that can open my bluestacks app player , then install apps to open various apps and then finally close bluestacks .
- Bamboo and xCode Bot solution
- Identify sending user, Python IRC
- How to block "bot*" bot via .htaccess
- Xcode Server Simulator Times Out Waiting 120 Seconds
- Python (2.7.10): Key Error: 'id'
- How can I get these Perl scripts to delay?
- addition with python into a .txt file
- How do I add variable `XP` to `userData.XP` for my Discord.js bot?
Related Questions in MQL4
- C++ Access violation write to 0x00000000 in dll in mql4
- C++ and MQL4 Cannot find function in dll
- How to print #property value?
- struct to array to File on mql4
- How to reverse-engineer and convert a protected EX4 file to MQL4-source in an MQ4 file?
- Specifying the start and the end date of the trading
- Variable argument list with different types in MetaTrader5
- Managing JSON Array format in MQL4 script
- Is there any way to declare a function that can take both an int and a double as it's argument in MQL4?
- Asynchronous web requests for MetaTrader
- How to make a Metatrader Terminal on VPS use a c# DLL?
- How to export to a CSV file from an Existent MT4 Indicator code
- Modifying order returns error 130
- MQL4 Indicator passing signal to EA
- How do you create a new array from all NON empty values in another array?
Related Questions in METATRADER4
- How to reverse-engineer and convert a protected EX4 file to MQL4-source in an MQ4 file?
- Retrieve Balance in MT4 using AutoIt
- Specifying the start and the end date of the trading
- Opening the Indicator in Multiple Charts
- Is there any way to declare a function that can take both an int and a double as it's argument in MQL4?
- MT4 Enumeration
- Create array of array in mq4
- Asynchronous web requests for MetaTrader
- MQL4 Indicator passing signal to EA
- Conversion of MetaTrader4 to NinjaTrader
- Failed to instantiate manager instance
- How to run a python script from an MQL4 EA-process ( MetaTrader4 Terminal )?
- MetaTrader Terminal [ History Center ] section: missing data within the platform?
- How to use the BackupRestoreUser and BackupRestoreTrades in Metatrader Manager API?
- How to download MQL4 IDE and Editor?
Related Questions in FOREX
- Automatically update variable data from the web in Python programming lanuage
- How to run a python script from an MQL4 EA-process ( MetaTrader4 Terminal )?
- How to set Alerts for indicators values in MT4 platforms
- Summarized huge data, How to handle it with R?
- creating new features with certain percentile of price
- How can I get foreign exchange rates thru an API?
- How can I get foreign exchange rates thru an API by using PHP or Ajax?
- Why is it that when the second arrow indicator shows up the EA doesn't execute anything?
- How to access MACD value and signal (both 2 data) in mql4
- Pandas apply combined with shift
- Fix Protocol Api Forex Access - Developing An App
- FIX issue with new order single
- select range when value is higher than in previous value
- MT4 and website integration
- Am Getting Error 4108 for my OrderModify function
Related Questions in MT4
- Why is the form freezing, when loaded from static method in MetaTrader Terminal 4?
- Specifying the start and the end date of the trading
- Opening the Indicator in Multiple Charts
- MT4 Enumeration
- How to export to a CSV file from an Existent MT4 Indicator code
- How to connect to Mysql from C# as MT4 dll?
- Failed to instantiate manager instance
- Mql4 indicator does not update automatically
- Breakout indicator Alert: Bollinger Band breaking out from inside a Donchian Channel
- MT4 and website integration
- ExpertAdvisor within ExpertAdvisor .. nested EA
- Which is more correct stop loss for opening buy position in mt4?
- Get An existing connection was forcibly closed by the remote host when connecting to MT4
- Detect when ema 50 is at Rsi level 90 or ema 50 is at rsi level 10, when ema 50 is placed on same rsi window
- Tradingview alerts and just place trade through mt4
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Short version: there is no way to get it "from" RSI level
Why?
Read the graph and check, how many times the RSI-indicator touched or crossed the level of 30% ( on the "oversold" end of the interval of 0..100 percent scale )
Now, for each that moment in time, see the actual
Close[i]. Are they all the same or do they differ for each such moment in time, wheniRSI() == 30%?They are different, and a lot, aren't they?
That is the reason one can never say an actual
Close[i]just from aniRSI()-level.Q.E.D.