@jstap check previous .. I already gave you the link.
Posts made by AlphaOmega
-
RE: Coding Problem?? or FXDreema bug??posted in Questions & Answers
-
RE: Coding Problem?? or FXDreema bug??posted in Questions & Answers
Hmmm! Thank you. I have done that... canot see a problem except if there is some way the expert see both sells buys, but because of the groups distinguish I do not see the how.. anyway.. I also split the expert in a buy only and sell only
-
RE: Coding Problem?? or FXDreema bug??posted in Questions & Answers
@jstap, thanks for answering .. https://fxdreema.com/shared/wd3u7XTDc
Problem no1. The average buys and average sells get confused.
Problem no2. The average ranges and gets bigger the longer the expert run
Problem no3.. The correct writing in the right upper corner should read average Sells not average BuysIf you could help it will be much appreciated
-
Coding Problem?? or FXDreema bug??posted in Questions & Answers
I have two similar codes, for Average buys and Average sells.
For some reason the calculation gets mixed-up somewhereGroup1
Code for the buys: double lots = PositionGetDouble(POSITION_VOLUME);
double openlvl = PositionGetDouble(POSITION_PRICE_OPEN);v::average_Buys = v::average_Buys + lots/v::total_lots*openlvl;
}
};
Group2
Code for the sells: double lots = PositionGetDouble(POSITION_VOLUME);
double openlvl = PositionGetDouble(POSITION_PRICE_OPEN);v::average_Sells = v::average_Sells + lots/v::total_lots*openlvl;
}
};Notice the script in the Sells column.. Average Buys, which should be average Sells


I get this error in the journal:
2025.01.28 14:17:37.430 2024.07.12 11:35:24 Error: Invalid TP requested (55749.77880 for Ask price 1.08857)
2025.01.28 14:17:37.430 2024.07.12 11:35:24 Error: Invalid TP requested (55749.77880 for Ask price 1.08857)This is my blocks for Buys:

This is my blocks for Sells:

So why would this happen? Is the another way to get a dynamic TP for group1 and 2 that will not interfere with each other?
It gets worse when you have more trades running
Help would be appreciated ... Thank you
-
RE: Profit Mathposted in Questions & Answers
The profit math idea does no work properly .. instead only use @roar algorithm.. you can build a decent martingale from this.. I have made a buy side that time to get the thing to work. The example is above.. You can just copy and alternate for sell
https://fxdreema.com/shared/VeKz6Pg7d = The raw algorithm
-
RE: Martingale principlesposted in Questions & Answers
@Abade69 , roar
Thanks for the insight! very interesting and agreeable to me. I am using martingale with a MACH strategy. It only starts trading when the instrument I am trading becomes in an extreme position. I made it from a small 6 blocks algorithm roar wrote many moons ago here. Of cause it has grown to 274 blocks. I am not clever enough to put into words as what you have describe as your strategy but I always had a notion it is too weak to use only back test and find an expert good or bad. Also many experts work only short term and then fade. This is enough proof to me that no expert is suppose to work from the past into the future and eternity.. It needs to change as the market change.. Say weekly, monthly or yearly depending the pair that is traded. EURUSD for example has last week changed because it was to overbought.. Thanks for the insight -
RE: Martingale principlesposted in Questions & Answers
What Jstap is asking: How do you decide to open trades? not what is your martingale(money) strategy
-
RE: MathSrand problemposted in Questions & Answers
@mr-lenny Mine test normal speed.. just check your blocks again
-
RE: Import EX5 file.posted in Questions & Answers
@faulky4486
Real sorry to hear about your problem.. but.. for a guy to spent so much money on an expert, you cannot use, with a programmer you cannot trust .. You do not need to trade.. you have enough, my two cent -
RE: Tested R&S levelsposted in Questions & Answers
@tipsywisdom I have also tried this support and resistance strategy but could not get it in a zone of the price bottom (support)) and top (Resistance). The zone should be +/- 25 pips wide, with Ma200 in that zone. Also, I do not want to read on-chart objects, like the miro1360 tutorial. I am just to dumb to make it work with variables and calling of the Sup and Dem indicator.
https://fxdreema.com/shared/vTjtfQ5ic -
RE: Trailing Stop based on MACD lineposted in Questions & Answers
@jameshovey85
I will start something like this.. then struggle my way with 1000,s of testing, and begging in the forums.... till I have what I,m looking for.... good luck... the thing is you want to trail MACH... but what exactly is it you want to trail of the MACH? It would also then be better if you take the MACH trail you want and write a variable for it

-
RE: Trailing Stop based on MACD lineposted in Questions & Answers
@jameshovey85 You can do it this way...
Put the blocks as l-andorra said but in condition block before the Modified stops you will have to put a variable that store the mach price -
RE: Timeframe Conditions Problemposted in Questions & Answers
@jstap I dont understand this... If I back test an expert with different time frame conditions my back test screen opens all the time frames I am using in my expert. But the conditions of the orders are placed correctly, no matter if the time frames is checking up or down. If I read you correctly, you are saying the expert will only read backwards? Am I correct in my understanding? That is very strange.

-
RE: how to create 3 condition block runing separeatelyposted in Questions & Answers
@mr-lenny brother.. just insert your condition correctly.. no need for a variable with your conditions... you use variables mostly when you want to count some candles or have a specific value in mind
EDIT
mr lenny just use one condition at a time.. in other words.. one block, .. till it works exactly like you want.. then add another block till it works exactly like you want... and so forth...
DO NOT USE SO MANY BLOCKS AT ONCE IF YOU ARE NOT SURE OF WHAT EVERY BLOCK DOES.. -
RE: how to create 3 condition block runing separeatelyposted in Questions & Answers

This condition will seldon happen... use above or below and stipulate only 1 cross.. OR
make the cross reference bigger ..like factor 15 or something
-
RE: Children modified TPposted in Questions & Answers
@jstap Appreciate your reply.. That is a good idea!! Let me try it out -- Thank you!!
-
Children modified TPposted in Questions & Answers
Hello .. Could someone please help me find a way to place an order when children TP (New Take Profit mode) is closed, and not parent TP - I cannot use the average variable because it messes with the MQL code and then calculate wrong


If I use the average variable it messes up the algorithm

Thanks in advance!! -
RE: How do I get average? For open positions multiplied by lotsposted in Questions & Answers
@khalids222 No problems.. I made the same mistakes. Lets get on with the expert... Here is all you will ever need to create your type averaging of expert
https://fxdreema.com/forum/topic/10350/profit-math
https://fxdreema.com/forum/topic/11771/mathsrand-problem