Forum

Get the return value of the indicator with icustom???

Hi guys, This question is simple but I couldn't find an answer to it. I built and indicator and I want to use it's return value in my robot. // indicator code int start () { ... // a lot of calculations return ( 3 ); } How can I use iCustom or any other method to get this value ? For what I was

Debugging Code with GDB, anyone tried?

Hi guys, I'm having some trouble in my EA and so I need to debug it. It's a pain in the ass to use Print through the whole program, and I need it to be executed step by step to know what's going on. So my idea was to switch everything into a C code and debug it with GDB. To be able to do that I need

How to calculate when the order if profitable ?

Hey guys, I wonder if anyone already did this calculation before... I want to know when one order is gonna be profitable so I can draw a line on the screen. The following code calculates the exact profit of one order... OrderSelect (ticket, SELECT_BY_TICKET, MODE_TRADES); profit = OrderProfit () +

Calculating an angle in chart price x time

I know it sounds strange, and I did some research in this forum before, but I couldn't understand how you guys calculate angles. The regular way to calculate an angle in a chart price x time would be like this: tan = (Close [x] - Close [y]) / (Time [x] - Time [y]); angle = MathArctan (tan) * 3.14 /