-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set lots(volume) #41
Comments
You could update the I think you could also do something like this:
But, I'm pretty new to this package, so there are probably better ways to do this :) |
Actually, instead of going to the DATA_DIR, you can just update the For example: sim = MtSimulator(
unit='USD',
balance=10000.,
leverage=100.,
stop_out_level=0.2,
hedge=True,
symbols_filename=FOREX_DATA_PATH
)
if not sim.load_symbols(FOREX_DATA_PATH):
sim.download_data(
symbols=["EURUSD"],
time_range=(from_dt, to_dt),
timeframe=Timeframe.M1
)
sim.save_symbols(FOREX_DATA_PATH)
new_max_volume = 42.0
sim.symbols_info["EURUSD"].volume_max = new_max_volume |
Let's to try, thanks Wayne.... |
how do i set the maximum lots?
The text was updated successfully, but these errors were encountered: