@forexbob-0 theres many ways. What error do you get?
Posts made by roar
-
RE: when at BB upper line to put pending order 70 points aboveposted in Questions & Answers
I think you want to change either one of these operands

-
RE: Is the admin modifying the code on variables?posted in Bug Reports
@l-andorrà it could be just some weird mechanism with time zones and block execution order. I'm not sure whats the full picture though
-
RE: Every Few Trades*posted in Questions & Answers
@Morpheus_0 something like this, there is probably even simplier solution
-
RE: ichimoku span doesnt reactposted in Questions & Answers
@YOSEF the one that doesnt have a value on current candle?

-
RE: Modified grid to reduce risk?posted in Questions & Answers
@tho401 so you are paying very close to what every retail trader pays ($3 per lot). You shouldn't let the complicated reward scheme to cloud your judgement - you are paying for every trade, therefore you should avoid unnecessary trades just like everyone else. But its none of my business, hope you get help in this topic
-
RE: Modified grid to reduce risk?posted in Questions & Answers
@tho401 even with rebates to offset costs, surely you pay something for every trade? Otherwise, just make an EA to buy/sell every second and close immediately.
These are honest questions, because if you really get paid a net-positive sum for making trades, I will get into that business right away.
-
RE: Modified grid to reduce risk?posted in Questions & Answers
@tho401 you need to make some checks, is there any buy trade, is there any sell trade, where are their open prices....
I would make an example, but this just looks bad and I wont go out of my way to promote bad strategies. You cant make grid more profitable by doing the opposite of grid. You just pay double the trading costs.
Also, you are opening and closing trades at the same instant, further adding to your costs. If you want to hedge some particularly volatile periods, just open a single sell trade the size of total buy position to get net zero exposure, and close sell when you feel the volatile period is over.
But again, the point of grid strategies are to make use of volatility. Profit is a reward from taking a risk. By canceling the buy trade with sell trade, you are basically not trading but paying for it anyway.
-
RE: Is the admin modifying the code on variables?posted in Bug Reports
@l-andorrà next step of troubleshooting would be more log blocks - as you have multiple groups of blocks, each group should start with a log message that tells the timestamp and variable values.
-
RE: Limit Maximum symbols trading.posted in Questions & Answers
@OntradingX your original example has a working checkup with the increasing variable, you are just not checking all symbols at once.
This structure should work. Use a 1-cycle loop block to control the flow: first go through symbols, then continue with the currently selected symbol

-
RE: Is the admin modifying the code on variables?posted in Bug Reports
What do you see in the log? Are the variables 0 or something else?
-
RE: Acc High Comment*posted in Questions & Answers
- Set up variable highbalance
- Run this code to update it:
highbalance = MathMax(AccountBalance(), highbalance)
-
RE: Is the admin modifying the code on variables?posted in Bug Reports
I think you can right-click and insert the variable, but at this point its probably easier to make a custom string and print it:
string cmt = "";
cmt += " " + "highest_loss: " + highest_loss;
cmt += ", " + "highest_profit: " + highest_profit;
cmt += ", " + "max_profit_was_at: " + max_profit_was_at;
cmt += ", " + "max_loss_was_at: " + max_loss_wat_at;
cmt += ", " + "total_profit: " + total_profit;Print(cmt);


-
RE: Move blockposted in Questions & Answers
To move lower portion, use the second menu in the block.

-
RE: Is the admin modifying the code on variables?posted in Bug Reports
@l-andorrà block 13 is not directly after the reset, anything can happen between those 2 events.
Its better to use Print() (the "log message" block) because it gives the timestamps so you can be sure the values are updated ones
-
RE: Is the admin modifying the code on variables?posted in Bug Reports
Try putting a comment block (or Log message) right after the reset block, and comment out all variables. This way you see their values, and also see when the reset happens.
