Topics
Replies
m4j4p4v4
08 Oct 2024, 16:58
( Updated at: 08 Oct 2024, 17:07 )
RE: RE: RE: Plugin link to chart query
PanagiotisCharalampous said:
Check the Algo logs as well. There might be some useful information there as well.
Yea it seems BadVolume is the issue. I've tried a variety of volumes. Noting I can manually open with 0.1 - I thought it might be trying to use a real broker account without capital - as opposed to using the Demo account I'm trying to test it with but I ran a debug check and it confirms it's a demo account. I run bots with the same '0.1' float all the time without issue…
08/10/2024 16:55:19.359 | Info | Plugin [Trade Window Debug] started.
08/10/2024 16:55:20.344 | Info | Plugin OnStart method called.
08/10/2024 16:55:20.344 | Info | Account Type: Demo
08/10/2024 16:55:20.375 | Info | Window displayed successfully.
08/10/2024 16:55:23.516 | Info | Buy button clicked.
08/10/2024 16:55:23.516 | Info | Attempting to execute Buy order for XAUUSD with volume 0.1
08/10/2024 16:55:23.531 | Trade | Executing Market Order to Buy 0.1 XAUUSD
08/10/2024 16:55:23.594 | Trade | → Executing Market Order to Buy 0.1 XAUUSD FAILED with error "BadVolume"
08/10/2024 16:55:23.594 | Info | Failed to open trade: BadVolume. Error Code: 0
@m4j4p4v4
m4j4p4v4
08 Oct 2024, 07:58
( Updated at: 08 Oct 2024, 10:44 )
RE: Plugin link to chart query
PanagiotisCharalampous said:
I select allow and nothing happens.
What do you expect to happen? Did you try clicking on the buttons after you pressed “Allow”?
Yea exactly that, pressed both a number of times. Also if I close the plugin and re-run it it doesn't prompt for access again unless I disabled it in the main plugin on/off area. I've tested this quite a few times. Something tells me the syntax isn't pointing to XAUUSD correctly.
Many thanks :)
@m4j4p4v4
m4j4p4v4
08 Oct 2024, 17:16 ( Updated at: 08 Oct 2024, 22:24 )
RE: RE: RE: RE: Plugin link to chart query
**UPDATE** **SOLVED**
I've found the reason for anybody in the future who may find this useful. Hope this helps with calibrating like it has for me.
It appears 1.0 Lot in the syntax = 0.01 lots in reality for XAUUSD so it needs scaling up. BadVolume was because I was attempting 0.001 Lots
with 1 Lots written in c# I can confirm this equated to 0.10 lots in reality. As below -
08/10/2024 17:10:42.438 | Info | Buy button clicked.
08/10/2024 17:10:42.438 | Info | Attempting to execute Buy order for XAUUSD with volume 1
08/10/2024 17:10:42.438 | Trade | Executing Market Order to Buy 1 XAUUSD
08/10/2024 17:10:42.719 | Trade | → Executing Market Order to Buy 1 XAUUSD SUCCEEDED, Position PID99659352
08/10/2024 17:10:42.719 | Info | Opened XAUUSD Buy trade with 1 lots at 2612.79
So 100 is really 1.00 Lots and so on.
@m4j4p4v4