Posts made by bk7
-
RE: How can I find the average opening price for the last two positions?posted in Questions & Answers
@khalids222
for me there are open questions:
how many open buy positions you have max ?
exceeds, means avg of 2 positions is below current price, if you have more positions you take any positions or is there a rule?
ist just price a factor or volume as well?
you take swaps/commissions into account or just price ? -
RE: How can I find the average opening price for the last two positions?posted in Questions & Answers
@khalids222
i just read about the price, which closure logic you want to apply? -
RE: Close pending order before midnight and Reopen it after Midnightposted in Questions & Answers
@didymario7
i just reread the whole task and i saw it is about pending orders so the solution is even a bit easier. I recommend that you move the order away by a certain number of pips before 23:30 and move it back at a certain time like 00:25 or whichever time you choose. I recommend using a timespan and run once (23:25-23:30) because if there are no ticks at a certain time it can't run. You can also make it run at a fixed time (23:30) if that is super important for you.here is a sample for buys:
-
RE: Multichart Backtestposted in Questions & Answers
you can try
on init
a custom block with:ChartOpen(
string symbol, // Symbolname
ENUM_TIMEFRAMES period // Period
); -
RE: Close pending order before midnight and Reopen it after Midnightposted in Questions & Answers
@didymario7 the next 2 days i am super busy and hardly have time, if nobody helped you by then please send me a quick reminder in 3 days, if i forgot to make a quick draft
-
RE: How can I find the average opening price for the last two positions?posted in Questions & Answers
@khalids222 oh sry to read this.. the next 2 days i am super busy so if forget about it please send a reminder in 3 days if nobody else helped you by then.
-
RE: Close pending order before midnight and Reopen it after Midnightposted in Questions & Answers
or simply check at a certain time like 23:30 which open order you have
in a first step increase the sl (double)
second step open counter positions with a group id
third step at 01:00 for example close the counter orders (close all with selected group id)
fourth step return the sl to the original value -
RE: How to stop martingale EA from placing too many tradesposted in Questions & Answers
@ideal
implement a time filter or specify the min distance from last to next trade, which is might the better solution -
RE: 98% WIN rate - Looking for expert to partner with.posted in Questions & Answers
the question is what happens in the time you not win (2%) and if you have a win ratio of 98% but your average gain is 1 and the average loss is 100 you still have a big problem!
-
RE: PARTIAL CLOSEposted in Questions & Answers
you DONT HAVE TO WRITE ALL IN CAPITAL LETTERS...
you can check the full code in your mq4/mq5 file and adjust the rulset to your needs, so there are no limits!
-
RE: PARTIAL CLOSEposted in Questions & Answers
if it works that way, you have solved all your issues on your own, great!
-
RE: Multichart Backtestposted in Questions & Answers
@tipsywisdom
via custom code or by default with fxdreema? -
RE: PARTIAL CLOSEposted in Questions & Answers
better not use pips/points if you are not able to work with it.
I suggest you set/calculate the price levels for each trade you want to take volume out, or add volume to it limit each level to 1 once per trade. this would be the safest and probably also the easiest way...
The sizing of the trades you can choose as a multiple of what you take out and you can avoid this problem by default. -
RE: custom indicator ...please help ......posted in Questions & Answers
simply make a variable for each buffer, and then check which variable has no empty value (the other things look just super strange to me and many loose blocks)
-
RE: How can I find the average opening price for the last two positions?posted in Questions & Answers
so you still need the average price of the last 2 openend positions?
do you need this for all orders no matter buy or sell, or 1 avg for buys and 1 for sells?
-
RE: Create a pending every new trade at fixed distanceposted in Questions & Answers
@TipsyWisdom meant that brokers dont like to get that much orders within short period of time, so they slow your order execution by some seconds which gives you slippages on open and close (or lets say the brokers lp).
the solution should work, just check that the min distance of pending orders isnt bigger, otherwise you can open market orders if the price is matched...
-
RE: How to repeat a BOX every day ?posted in Questions & Answers
from a quick check i see more lines than in your shared link..
how you make the calculation for the lines and whats the drawing trigger -
RE: How can I find the average opening price for the last two positions?posted in Questions & Answers
or a loop of last 2 trades, sum the 2 prices and divide by 2
would be a quick solution, that works