Forum

Check if market already hit the line?

Hey Guys, I'm actually programming an EA who should by or sell if he is above or below a specified line. The prices for the specified lines I'm getting with this code: //lowest and highest are datatime values. So I get a two specified bars! //Beginning leftToShiftLowest = iBarShift ( NULL , 0

Only one trade at the same time?

Hey Guys, I want to make a backtest but for that I need to programm my EA so that it is possible to execute more than only one trade? At the moment I have programmed it so that the EA can only trade once. But I have no idea how to programm the EA so that he can trade more than one time but only one

Any way to close after a time?

Hey Guys, I searched a long time for some examples to close one specified Trade after a specified amount of time. Or in another way, to close this trade at 23:59. Before the new day is beginning. Can anybody help me please to code that or is there another way? Greetings and Thank you

EA doens't trigger the order and returns a error

Hey Guys, I programmed a EA with an Indicator called SuperTrend. My problem is that if the market triggered the line to sell or buy, I am getting the Error "#02" and the Order isn't placed... Does anyone has a idea and can help me? (SuperTrend is attached!) if (tpBuy < Bid ){ hitTarget = true

Show Object Name on Chart and create a line till last day?

Hey Guys, I have currently two problems. 1. How can I display a name of a horizontal line on the chart? - I tried to create a label and set it with TimePrice to XY to the right position. But there is the problem that it will always be on the same XY... So if I press + or -, the label is somewhere

iCustom doesn't work... - I know how the iCustom Methode works!

Hey Guys, I can imagine that here in the forum are a lot of threads like these. But my problem this time isn't that I don't know how the iCustom Methode works rather that it doesn't work... The parameters for the iCustom Methode are: double iCustom (symbol, timeframe, name

Implement a Indicator in a EA?

Hey Guys, I know how to get specific data from a indicator in a EA. For example I use iMA to get the current data for the moving average. But I also want to visualize those data for the user. So my question is, how can I implement the moving average so that the moving average is appering on the

Bar shifting and iLow/iLowest only work on full hours? (10pm, 11pm ...)

Hey Guys, I have one problem... My EA only works on full hours. Like from 10pm to 11pm and so on. But if I input 10:15 or 10:54 to 11 it doesn't work... The EA should operation so that he can give me the highest and lowest price between a specified timespan. But I don't know why it only works with

ObjectCreate "OBJ_RECTANGLE" doesn't work in other timeframes

Hey Guys, I'm programming actually a EA. I need to visualize a specified area and I want to do this with the rectangle. But the problem is: In the initialized is the specified area right. But if I change the timeframe to e.g. M15 the rectangle doesn't appear right... - Why is that so? Everything

Get OpenTrades ID number and make a particial close?

Hello everybody, I know there are already a lot of topics like this but I don't understand them. How can I get all OpenTrade ID Numbers, to make particial close if the price if above or below a specified border? Greetings and Thank you