- Wir können her Deutsch sprechen :)
- Durch den ganzen Code eines anderen zu gehen und zu verstehen ist sehr aufwendig.
- Wenn Du schon versucht hast, mit dem Debugger zu arbeiten, dann versuch doch als nächstes von Deinen vier Handelssituationen erst einmal nur eine laufen zu lassen und das erst mit dem Debugger dabei lässt Du die jede wichtige Änderung mit Comment(..) anzeigen.
- Hier noch eine Hilfe um einfach Name und Wert einer Variablen als Zeichenkette auszugeben:
// not tested: #define _2StrD(a,d) #a+":"+DoubleToString(a,d)+" " #define _2Str(a) #a+":"+DoubleToString(a,_Digits)+" " // use: Comment(_2StrD(profit,2), _2StrD(close[i]), ..)
Sie verpassen Handelsmöglichkeiten:
- Freie Handelsapplikationen
- Über 8.000 Signale zum Kopieren
- Wirtschaftsnachrichten für die Lage an den Finanzmärkte
Registrierung
Einloggen
Sie stimmen der Website-Richtlinie und den Nutzungsbedingungen zu.
Wenn Sie kein Benutzerkonto haben, registrieren Sie sich
Hello Everyone.
First all a big Thank You to everyone who is going to have a look at my code!
This is what I tried to make the code "do":
1. Open 1 Trade when "Buycrossover","BuyTrend","SellCrossover" or "Selltrend" has been confirmd. I tried doing this by using bools.
2. Once one of these has been confirmed I want the EA to Open 1 Trade each time the candle closes in the oposite direction so: If it is a buy confirmation everytime the candle goes down it should open a buy order.
3. This cycle continues until all the order get closed by the close condition which I also tried to solve by a confirmation by the CCI indicator which has to enter an overbought or oversold value twice once when the first order was placed and the second time when all orders get closed.
This is what the EA is currently doing (See Screenshot=):
I tried debugging what it was doing and this is what I figured out so far.
I haven't made much progress with my debugging which is why im reaching out to some experts on here ;)
1. So it seems to recognize at least the BuyTrend and Selltrend condition correctly. Something is wrong with the crossoverconditions since it just seems like the EA opens orders indefinitely even though the signal is not even true according to the indicators.
2. Even though it recognizes buyTrend as a signal it just opens oders indefinetly and dosen't stop after the signal was made like I tried to make it go. I am still a beginner with my code so bar with me I learn as I go.
All advice and help is greatly appreciated <3