SIMONE MARELLI / Publications
Forum
iCustom and value
Good Morning all, i was testing iCustom function with the attached indicator. I call it on this way: double EURUSDEMAUP0 = iCustom ( "EURUSD" , _Period , "EMA_Cross__SES__BDv8_12_31__1" , 2 , 15 , true , 0 , 0 ); double EURUSDEMADN0 = iCustom ( "EURUSD" , _Period , "EMA_Cross__SES__BDv8_12_31__1"
TrailingStop + Reverse Order
Hello All, i have this simple code to create Trailing Stop. it works perfectly. But my ideas is to open a reverse order with double lots when SL is touched. I have made lot of test, but this seems not working extern int MagicNumber= 123 ; extern double Lots = 0.05 ;
Is MQL4 Bugged?
I am trying one easy code. Open two orders at specific time. It works 6 times on 10. Why sometimes works and sometimes no? //+------------------------------------------------------------------+ //| Orders.mq4 | //| Copyright
iCustom Test
Hello Guys, i have an ex4 file indicator that shows currency strength. My ideas was to made a test to check if i can use iCustom to see if i can get a value of the power of a pair, but i have always same value and it's zero. Indicator is attached, this is how i have tried it: double Strength =
Trailing Stop and reversing
Hy Guys! I have made a simple code, and then i have added trailing stop. Works nice, but i was thinking to reverse the order when sl is touched. My ideas is this: Trailing for ( int b= OrdersTotal ()- 1 ; b>= 0 ; b--) { if ( OrderSelect (b,SELECT_BY_POS,MODE_TRADES)) if
Getting crazy with Renko!
Hello Guys, i am getting crazy with Renko charts. I have correctly generated a Renko charts, but every ea that i code doesn't wor there. OnTick seems not working, also Start, i have tried this init() { EventSetTimer ( 1 ); } deinit() { EventKillTimer (); } void OnTimer () { ChartRedraw
Building a Framework for multiple entry
Good morning all, i have a question. I have made 3 expert advisors that works with different indicators and strategy. Everything works fine, but if i want to let them work on a single pair, actually i had have to open three charts for a pair. I was think to build a framework, but what is the best
Ride the swap
Hello, i have made a bot that calculate the swap for long and short, using double PSwap = SymbolInfoDouble(Symbol(),SYMBOL_SWAP_LONG); double NSwap = SymbolInfoDouble(Symbol(), SYMBOL_SWAP_SHORT ); they return the correct value, but i don't know why i try to make a code like that: if( PSwap > 1 ...)
Calculate Buy and Sell Session Orders
Hello Guys, i have a question. I am not sure about using this function: long buyers = SymbolInfoInteger( SYMBOL_SESSION_BUY_ORDERS); i have tried to use some Symbol info, like sell orders, volumes, and other various info, but they all give me 0 as value. Why this function does not works? Because the
How to force ea to wait
Good Morning Guys, I have searched on forum but i can't find the solution, i am pretty new to coding. I have made a simple ea, a simple triple ema cross. But there is an important condition that i need to be true, here is how it should work; Ema 20, 50, 200 When ema 50 cross the 200 (above or