[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 706
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
was creating arrow indicators. God willing, I've created them, I've learned a thing or two. Now I decided to combine them, to make two in one ....... The essence of the idea: have MACD, set certain levels in the + and -. When MACD is behind these levels (both in + and -), then buy and sell arrows will appear. It seems to be done, compiles without errors BUT BUT it does not work like that well not so....
this is a working indicator
And this is what I got.......
I feel something is wrong in the code and I don't understand what it is............................. HELP THE WRONG..... :-))
Hello! Thanks to Artem for the functions from KimIV.
Maybe someone knows: one of TakeProfitLastClosePos() functions (returns TakeProfit price of the last closed position or -1), returns TakeProfit valuewith four decimal places, and my DC gives five decimal places (EURUSD pair). I can´t place the next order as the TakeProfit valueof the last closed position and the price to place the next order are directly related to each other.Can you help me get out of this situation? Thanks in advance!!!
Hello! Thanks to Artem for the functions from KimIV.
Maybe someone knows: one of TakeProfitLastClosePos() functions (returns TakeProfit price of the last closed position or -1), returns TakeProfit valuewith four decimal places, and my DC gives five decimal places (EURUSD pair). I can´t place the next order as the TakeProfit valueof the last closed position and the price to place the next order are directly related to each other.Can you help me get out of this situation? Thanks in advance!!!
Actually, the function returns a value with all significant digits after the decimal point. Even eight decimal places. It's just that the default output is 4 digits. But if you use DoubleToStr() beforehand, you can make sure
OrderSend(Name of currency pair.... and other parameters......)
I need help in solving the code for multicurrency EA, I need one EA to work and trades to be opened on any currency pairs.
I have dug multicurrency EA in CodeBase, but I can't understand what's where and why.
If you do not understand the code of the multicurrency EA you won't be able to check it in the Strategy Tester (( Please explain to me, based on this code or some other code, what should go where and why, so that my EA will trade on all pairs. I don't understand it, but if I cut the code without understanding it, it will work, but I still don't understand the implementation, and I will have to ask for help again.
And this is what I got.......
I smell something wrong in the code and I don't know what it is................
I need help in understanding the code for multicurrency EA.
I have dug a multicurrency EA in CodeBase, but I cannot find out what's where and why.
If you do not understand the code, you cannot check it in the Strategy Tester. (( Please, explain to me, based on this code or some other code, what should go where and why, so that my EA may trade on all pairs. I don't understand the code, but it may work, but I still don't understand the implementation, and I will have to ask for help again.
This code does not fit you, as it opens transactions only on the pair, to which it is attached, it can be seen on the lines:
Function Symbol () returns the current pair. Accordingly, to open on other currency pairs, instead of this function, simply enter the desired name of the financial instrument.
This code does not suit you as it only opens trades on the pair to which it is attached, this can be seen from the lines:
Function Symbol () returns the current pair. Accordingly, to open trades on other currency pairs, instead of this function, simply type the name of the financial instrument you need.
It is not that easy. You also need to change the Point to the right value, and Ask. And Bid too.
This code does not suit you as it only opens trades on the pair to which it is attached, this can be seen from the lines:
Function Symbol () returns the current pair. Accordingly, to open trades on other currency pairs, instead of this function, just type the name of the financial instrument you need.
That's the thing. My Expert Advisor receives signals from different currency pairs and instead of Symbol() in my order, it assigns a variable with the value of the currency pair, i.e. if the signal comes from euro, it is EURUSD, if it comes from yen, then USDJPY but including the EA, it sees all the signals, but opens only the currency on which it is standing.
This is how I do the following sample code